Hugh Dickins 0783ac95b4 mm/shmem: fix build without THP
Some optimizers don't notice that shmem_punch_compound() is always true
(PageTransCompound() being false) without CONFIG_TRANSPARENT_HUGEPAGE==y.

Use IS_ENABLED to help them to avoid the BUILD_BUG inside HPAGE_PMD_NR.

Fixes: 71725ed10c40 ("mm: huge tmpfs: try to split_huge_page() when punching hole")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Link: http://lkml.kernel.org/r/alpine.LSU.2.11.2004142339170.10035@eggly.anvils
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-04-21 11:11:55 -07:00
..
2020-04-10 15:36:21 -07:00
2019-08-30 22:43:58 -07:00
2020-04-07 10:43:41 -07:00
2020-04-08 21:03:40 -07:00
2020-02-04 03:05:25 +00:00
2020-04-07 10:43:41 -07:00
2020-04-07 10:43:38 -07:00
2020-04-10 15:36:21 -07:00
2020-04-10 15:36:21 -07:00
2020-04-08 21:03:40 -07:00
2020-04-10 15:36:21 -07:00
2020-04-10 15:36:21 -07:00
2020-03-21 18:56:06 -07:00
2020-04-07 10:43:38 -07:00
2020-04-21 11:11:55 -07:00
2019-09-17 15:20:17 -07:00
2020-04-07 10:43:38 -07:00
2020-04-07 10:43:38 -07:00
2020-04-07 10:43:41 -07:00