[PATCH v3 0/3] make unused huge shrinker memcg aware
From: Qi Zheng
Date: Mon Aug 03 2026 - 04:47:02 EST
From: Qi Zheng <zhengqi.arch@xxxxxxxxxxxxx>
Changes in v3:
- add a fix patch to fix missed removal of super_fs_objects_eligible()
- move the original shrinklist addition logic after all checks are completed,
and split it into a separate patch. (suggested by Baolin)
- simplify the shmem_unused_huge_requeue() (suggested by Baolin)
- keep the move_back label in shmem_unused_huge_shrink() (suggested by Baolin)
- rebase onto the next-20260731
Changes in v2:
- temporarily add the dependent patch from Usama to the series for review
convenience
- remove shrinklist_scan and shrinklist_isolated from struct shmem_inode_info,
and re-implement the logic by resuing the same info->shrinklist
(suggested by Baolin)
- add more comments (suggested by Andrew)
- fix missing initialization of info->shrinklist_memcg (pointed by sashiko)
- rebase onto the next-20260717
Qi Zheng (3):
fs: fix missed removal of super_fs_objects_eligible()
mm: shmem: move unused huge shrinklist queuing past the truncation
check
mm: shmem: make unused huge shrinker memcg aware
fs/super.c | 18 +-
include/linux/shmem_fs.h | 12 +-
mm/shmem.c | 361 +++++++++++++++++++++++++++++----------
3 files changed, 283 insertions(+), 108 deletions(-)
--
2.54.0