[PATCH v2 0/3] mm,thp,rmap: rework the use of subpages_mapcount

From: Hugh Dickins
Date: Tue Nov 22 2022 - 04:38:41 EST


Andrew, please replace the 1/3, 1/3 fix, 2/3, 3/3 in mm-unstable
by these v2 three: which incorporate the uninitialized warning fix,
and adjustments according to Kirill's review comments, plus his
Acks - I couldn't quite manage them just by -fixes.
No functional change from the v1 series.

1/3 mm,thp,rmap: subpages_mapcount of PTE-mapped subpages
2/3 mm,thp,rmap: subpages_mapcount COMPOUND_MAPPED if PMD-mapped
3/3 mm,thp,rmap: clean up the end of __split_huge_pmd_locked()

Documentation/mm/transhuge.rst | 10 +-
include/linux/mm.h | 67 +++++++----
include/linux/rmap.h | 12 +-
mm/huge_memory.c | 15 +--
mm/page_alloc.c | 2 +-
mm/rmap.c | 219 ++++++++++-------------------------
6 files changed, 124 insertions(+), 201 deletions(-)

Thanks!
Hugh