summaryrefslogtreecommitdiff
path: root/mm/swapfile.c
diff options
context:
space:
mode:
authorSong Liu <song@kernel.org>2022-04-15 19:44:11 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2022-04-24 20:00:54 +0300
commitf2edd118d02dd11449b126f786f09749ca152ba5 (patch)
tree2d3b9a1a32f41ec6bacaed9fd3cadb7b733bca2d /mm/swapfile.c
parent22da5264abf497a10a4ed629f07f4ba28a7ed5eb (diff)
downloadlinux-f2edd118d02dd11449b126f786f09749ca152ba5.tar.xz
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>
Diffstat (limited to 'mm/swapfile.c')
0 files changed, 0 insertions, 0 deletions