Re: [PATCH v3 26/30 fix] mm: mglru: do not call update_lru_size() during reparenting

From: Harry Yoo

Date: Tue Jan 20 2026 - 22:57:19 EST


On Thu, Jan 15, 2026 at 06:44:44PM +0800, Qi Zheng wrote:
> From: Qi Zheng <zhengqi.arch@xxxxxxxxxxxxx>
>
> Only non-hierarchical lruvec_stats->state_local needs to be reparented,
> so handle it in reparent_state_local(), and remove the unreasonable
> update_lru_size() call in __lru_gen_reparent_memcg().

Hmm well, how are the hierarchical statistics consistent when pages are
reparented from an "active" gen to an "inactive" gen, or the other way around?

They'll become inconsistent when those pages are reclaimed or
moved between generations?

--
Cheers,
Harry / Hyeonggon