Re: [PATCH v9 09/16] mm/mglru: Avoid placing rejected folios below populated gen

From: Barry Song

Date: Wed Nov 25 2026 - 19:11:16 EST


On Wed, Nov 25, 2026 at 7:47 PM Ridong Chen <ridong.chen@xxxxxxxxx> wrote:
>
>
>
> On 11/15/2026 4:07 AM, Barry Song (Xiaomi) wrote:
> > We used to scan only the oldest generation in scan_folios(). In
> > evict_folios(), we checked whether
> > lru_gen_folio_seq(lruvec, folio, false) == min_seq[type]. If so, the
> > folio was marked active and moved to younger generations.
> >
> > This was itself buggy, as folios in generation min_seq[type] - 1
>
> Should this be min_seq[type] + 1?

Oops, a fat-finger typo. Andrew, could you please help fix this
in the changelog?

[...]

> Reviewed-by: Ridong Chen <ridong.chen@xxxxxxxxx>

Thanks!
Barry