[PATCH 0/2] mm/vmscan: remove obsolete offlined memcg reclaim handling
From: T.J. Mercier
Date: Tue Oct 27 2026 - 21:06:22 EST
Since commit f1cf8d2f36dc ("mm: memcontrol: eliminate the problem of
dying memory cgroup for LRU folios") and commit 0e0ac326c511 ("memcg:
move LRU size accounting on reparenting instead of copying it"), LRU
folios and their size accounting are reparented to the parent memcg
before a memcg is offlined, leaving the offlined memcg's lruvec
permanently empty.
This series removes the remaining reclaim special-casing for offlined
memcgs that assumed they could still hold LRU folios:
1. Remove redundant !mem_cgroup_online() checks in vmscan.c
2. Stop rotating offlined memcgs to the head of the old generation
(MEMCG_LRU_OLD) in MGLRU.
T.J. Mercier (2):
mm/vmscan: remove redundant !mem_cgroup_online() checks
mm/mglru: stop rotating offlined memcgs to the old generation
Documentation/mm/multigen_lru.rst | 4 +--
include/linux/mmzone.h | 22 +++++---------
mm/memcontrol.c | 1 -
mm/vmscan.c | 48 ++++---------------------------
4 files changed, 14 insertions(+), 61 deletions(-)
base-commit: 2bba28e98578de622ef307d00875aa8f8bca3d10
--
2.56.0.307.g5fe7bd680c-goog