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

Harry Yoo
2025-11-21T10:12:20Z

On Tue, Oct 28, 2025 at 09:58:35PM +0800, Qi Zheng wrote:
> From: Qi Zheng <zhengqi.arch@bytedance.com>
>
> 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@bytedance.com>
> ---

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@oracle.com>