mm: THP: workaround: only allow including specific headers for FINEGRAINED_THP config... 99/263699/1 accepted/tizen/unified/20210909.101207 submit/tizen/20210908.082952
authorSung-hun Kim <sfoon.kim@samsung.com>
Wed, 8 Sep 2021 08:18:37 +0000 (17:18 +0900)
committerSung-hun Kim <sfoon.kim@samsung.com>
Wed, 8 Sep 2021 08:18:37 +0000 (17:18 +0900)
commit04519e317c60d1d245443b74ae0fef2af1d6241f
tree55230c0292ac3638aea9cad26d436e32226ae759
parentf17e2a879df716db843d744ecf8782d1bcaf13c6
mm: THP: workaround: only allow including specific headers for FINEGRAINED_THP configured cases

asm/huge_mm.h and asm/finegrained_thp.h are only used for
FINEGRAINED_THP-enabled kernel. Otherwise, such as arm which does
not support contiguous PTE bit, disallow including them.

Fixes: 7d5372737d34 ("mm: THP: introducing a fine-grained transparent hugepage technique for ARM64 architecture")
Change-Id: I37c2bc46106711f4b7ee33a6838d87e929e13247
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
mm/khugepaged.c
mm/memory.c
mm/mmap.c