Re: [PATCH v2 2/7] mm/mglru: batch update lrugen->nr_pages in inc_min_seq()

From: Lian Wang

Date: Sun Aug 30 2026 - 03:02:39 EST


> Instead, accumulate the size changes and update lrugen->nr_pages in a
> batch after scanning the entire oldest generation, or when the scan
> stops because remaining reaches zero.

I have reviewed this patch and the related discussion. The accounting logic
and the break-to-flush control flow make sense to me.

Reviewed-by: Lian Wang <lianux.mm@xxxxxxxxx>