[PATCH v3 0/2] Shmem mTHP controls and stats improvements

From: Ryan Roberts
Date: Thu Aug 08 2024 - 07:19:20 EST


Hi All,

This is a small series to tidy up the way the shmem controls and stats are
exposed. These patches were previously part of the series at [2], but I decided
to split them out since they can go in independently.

---
This applies against today's mm-unstable (275d686abcb59). (although I had to fix
a minor build bug in stackdepot.c due to MIN() not being defined in this tree).
All mm selftests have been run; no regressions were observed.

Changes since v2 [2]
====================
- swpout stats are now exposed for all orders supported by anon or shmem.

[2] https://lore.kernel.org/linux-mm/20240716135907.4047689-1-ryan.roberts@xxxxxxx/

Thanks,
Ryan

Ryan Roberts (2):
mm: Cleanup count_mthp_stat() definition
mm: Tidy up shmem mTHP controls and stats

include/linux/huge_mm.h | 70 +++++++++----------
mm/huge_memory.c | 144 +++++++++++++++++++++++++++++++---------
mm/memory.c | 2 -
mm/shmem.c | 6 --
4 files changed, 149 insertions(+), 73 deletions(-)

--
2.43.0