]> git.baikalelectronics.ru Git - kernel.git/commit
page_alloc: use vmalloc_huge for large system hash
authorSong Liu <song@kernel.org>
Fri, 15 Apr 2022 16:44:11 +0000 (09:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 24 Apr 2022 17:00:54 +0000 (10:00 -0700)
commitd06f267d2bd492971a7870aa32d72982e9a3bfb3
tree2d3b9a1a32f41ec6bacaed9fd3cadb7b733bca2d
parent640f40b4bb201b871aa9f3664a940e35c0b8b81c
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>
mm/page_alloc.c