mm, thp: hide remap_try_huge_pmd for the THP-disabled kernel
authorSung-hun Kim <sfoon.kim@samsung.com>
Wed, 15 Sep 2021 07:39:13 +0000 (16:39 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Mon, 7 Feb 2022 08:01:41 +0000 (17:01 +0900)
commit4e119793c573094bb3db765cc96a1b85afa2f040
tree51cde3a09aa0a02f65c69e5043ca4cf80cdd9a7d
parentfd596bc13b378504c128bbc6fa3014dd41ad30d8
mm, thp: hide remap_try_huge_pmd for the THP-disabled kernel

Since remap_try_huge_pmd is dependent on the kernel
configuration CONFIG_TRANSPARENT_HUGEPAGE, it should be
hidden when the kernel configuration is disabled.

Fixes: 90eb23660fef ('mm: THP: introducing a fine-grained transparent hugepage technique for ARM64 architecture')
Change-Id: Iae9efb2edf6cd563c794af68bea7987110a5b2da
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
mm/memory.c