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

Configure Feed

Select the types of activity you want to include in your feed.

page_alloc: use vmalloc_huge for large system hash

Use vmalloc_huge() in alloc_large_system_hash() so that large system
hash (>= PMD_SIZE) could benefit from huge pages.

Note that vmalloc_huge only allocates huge pages for systems with
HAVE_ARCH_HUGE_VMALLOC.

Signed-off-by: Song Liu <song@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Rik van Riel <riel@surriel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Song Liu and committed by
Linus Torvalds
f2edd118 22da5264

+1 -1
+1 -1
mm/page_alloc.c
··· 8919 8919 table = memblock_alloc_raw(size, 8920 8920 SMP_CACHE_BYTES); 8921 8921 } else if (get_order(size) >= MAX_ORDER || hashdist) { 8922 - table = __vmalloc(size, gfp_flags); 8922 + table = vmalloc_huge(size, gfp_flags); 8923 8923 virt = true; 8924 8924 if (table) 8925 8925 huge = is_vm_area_hugepages(table);