There are only a couple of places left using the page wrappers for idle & young tracking. Convert the two users in proc and then we can remove the wrappers. That enables the further simplification of autogenerating the definitions when CONFIG_PAGE_IDLE_FLAG is disabled. Matthew Wilcox (Oracle) (4): proc: Convert clear_refs_pte_range to use a folio proc: Convert smaps_account() to use a folio mm: Remove page_idle and page_young wrappers mm: Generate PAGE_IDLE_FLAG definitions fs/proc/task_mmu.c | 32 +++++++++++--------- include/linux/page-flags.h | 9 +++++- include/linux/page_idle.h | 62 ++------------------------------------ 3 files changed, 27 insertions(+), 76 deletions(-) -- 2.43.0