Re: [PATCH v1 22/26] mm: vmscan: prepare for reparenting traditional LRU folios

From: Harry Yoo

Date: Fri Nov 21 2025 - 05:12:43 EST


On Tue, Oct 28, 2025 at 09:58:35PM +0800, Qi Zheng wrote:
> From: Qi Zheng <zhengqi.arch@xxxxxxxxxxxxx>
>
> To reslove the dying memcg issue, we need to reparent LRU folios of child
> memcg to its parent memcg. For traditional LRU list, each lruvec of every
> memcg comprises four LRU lists. Due to the symmetry of the LRU lists, it
> is feasible to transfer the LRU lists from a memcg to its parent memcg
> during the reparenting process.
>
> This commit implements the specific function, which will be used during
> the reparenting process.
>
> Signed-off-by: Qi Zheng <zhengqi.arch@xxxxxxxxxxxxx>
> ---

I tried my best to find flaws or pathological cases affecting
the memory manager, but I couldn't spot anything, so:

Reviewed-by: Harry Yoo <harry.yoo@xxxxxxxxxx>