On Mon, Apr 04, 2022 at 11:44:39AM -0400, Zi Yan wrote: > I am wondering if my change is the right fix or not. folios with order>0 > are still available when CONFIG_TRANSPARENT_HUGEPAGE is not set, right? That's the eventual plan, but it's not possible today. We need to be able to split large folios (eg in truncation) and that functionality is still under CONFIG_TRANSPARENT_HUGEPAGE in mm/huge_memory.c. So large folios depend on CONFIG_TRANSPARENT_HUGEPAGE instead of having a clean separation between functionality-to-support-PMD-mapping and functionality-to-support-order>0. So I preferred your earlier patch because it's more obvious. I mean, we could pull in the two or three patches from my tree that convert these functions and their callers to folios ... we're only at rc1. I can post them and see what others think.