Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

book3s64/hash: Refactor hash__kernel_map_pages() function

This refactors hash__kernel_map_pages() function to call
hash_debug_pagealloc_map_pages(). This will come useful when we will add
kfence support.

No functionality changes in this patch.

Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://patch.msgid.link/0cb8ddcccdcf61ea06ab4d92aacd770c16cc0f2c.1729271995.git.ritesh.list@gmail.com

authored by

Ritesh Harjani (IBM) and committed by
Michael Ellerman
43919f41 ff8631cd

+8 -1
+8 -1
arch/powerpc/mm/book3s64/hash_utils.c
··· 349 349 linear_map_hash_slots[paddr >> PAGE_SHIFT] = slot | 0x80; 350 350 } 351 351 352 - int hash__kernel_map_pages(struct page *page, int numpages, int enable) 352 + static int hash_debug_pagealloc_map_pages(struct page *page, int numpages, 353 + int enable) 353 354 { 354 355 unsigned long flags, vaddr, lmi; 355 356 int i; ··· 369 368 local_irq_restore(flags); 370 369 return 0; 371 370 } 371 + 372 + int hash__kernel_map_pages(struct page *page, int numpages, int enable) 373 + { 374 + return hash_debug_pagealloc_map_pages(page, numpages, enable); 375 + } 376 + 372 377 #else /* CONFIG_DEBUG_PAGEALLOC */ 373 378 int hash__kernel_map_pages(struct page *page, int numpages, 374 379 int enable)