Convert to use folios then remove find_subpage(), thp_nr_pages() and PageTransHuge(). --- The thp_nr_pages() remove depends on "mm: memory_hotplug: remove head variable in do_migrate_range()"[1] [1] https://lore.kernel.org/linux-mm/20240817084941.2375713-2-wangkefeng.wang@xxxxxxxxxx/ Kefeng Wang (5): mm: remove find_subpage() pagemap: use a folio in __readahead_batch() mm: remove thp_nr_pages() mm: khugepaged: pass a folio for set_huge_pmd() mm: remove PageTransHuge() include/linux/mm.h | 9 --------- include/linux/page-flags.h | 13 ------------- include/linux/pagemap.h | 26 ++++++-------------------- include/linux/pgtable.h | 2 +- lib/iov_iter.c | 24 +++++++++++++----------- mm/khugepaged.c | 10 ++++------ 6 files changed, 24 insertions(+), 60 deletions(-) -- 2.27.0