Re: [PATCH] fix: mm: vmscan: prepare for reparenting MGLRU folios
From: Harry Yoo (Oracle)
Date: Tue Mar 24 2026 - 20:28:14 EST
On Tue, Mar 24, 2026 at 07:49:37PM +0800, Qi Zheng wrote:
> From: Qi Zheng <zhengqi.arch@xxxxxxxxxxxxx>
>
> The lru_to_folio() returns the tail folio, and the lruvec_add_folio() adds
> folio to the head, so the tail page is colder. Since we always assume that
> the folios in child memcg (about to go offline) are always colder, we
> should use list_splice_tail_init() to reparent the child folios to the
> tail of the lru list of parent memcg.
>
> Reported-by: Harry Yoo <harry.yoo@xxxxxxxxxx>
> Signed-off-by: Qi Zheng <zhengqi.arch@xxxxxxxxxxxxx>
> ---
Reviewed-by: Harry Yoo <harry.yoo@xxxxxxxxxx>
--
Cheers,
Harry / Hyeonggon