Files
linux/arch/powerpc/kernel
Song Liu 559089e0a9 vmalloc: replace VM_NO_HUGE_VMAP with VM_ALLOW_HUGE_VMAP
Huge page backed vmalloc memory could benefit performance in many cases.
However, some users of vmalloc may not be ready to handle huge pages for
various reasons: hardware constraints, potential pages split, etc.
VM_NO_HUGE_VMAP was introduced to allow vmalloc users to opt-out huge
pages.  However, it is not easy to track down all the users that require
the opt-out, as the allocation are passed different stacks and may cause
issues in different layers.

To address this issue, replace VM_NO_HUGE_VMAP with an opt-in flag,
VM_ALLOW_HUGE_VMAP, so that users that benefit from huge pages could ask
specificially.

Also, remove vmalloc_no_huge() and add opt-in helper vmalloc_huge().

Fixes: fac54e2bfb ("x86/Kconfig: Select HAVE_ARCH_HUGE_VMALLOC with HAVE_ARCH_HUGE_VMAP")
Link: https://lore.kernel.org/netdev/14444103-d51b-0fb3-ee63-c3f182f0b546@molgen.mpg.de/"
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Song Liu <song@kernel.org>
Reviewed-by: Rik van Riel <riel@surriel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2022-04-19 12:08:57 -07:00
..
2021-12-09 22:41:21 +11:00
2022-02-07 21:03:10 +11:00
2022-02-07 21:03:10 +11:00
2022-02-07 21:03:10 +11:00
2020-12-04 01:01:09 +11:00
2021-12-09 22:41:19 +11:00
2021-12-09 22:41:21 +11:00
2021-04-30 11:20:40 -07:00
2021-12-09 22:41:21 +11:00
2021-12-09 22:41:21 +11:00
2021-11-16 21:24:16 +11:00
2021-12-13 12:04:45 -06:00
2021-08-19 09:02:55 +09:00
2021-12-09 22:41:21 +11:00