Re: [PATCH v2 1/7] mm/mglru: separate folio generation update from LRU accounting

From: Lian Wang

Date: Sun Aug 30 2026 - 03:27:16 EST


> Extract the generation update into __folio_inc_gen(), which only updates
> the folio's generation and reports whether the generation was actually
> increased. Keep folio_inc_gen() as the wrapper that performs the LRU size
> accounting when needed.

This is a nice split. Separating the per-folio generation update from the
LRU accounting makes the batching path straightforward. Looks good to me.

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