Re: [RFC PATCH v3 0/4] mm: enable lru cache for smaller large folios

From: Barry Song

Date: Wed Aug 19 2026 - 00:38:22 EST


On Wed, Aug 19, 2026 at 11:03 AM Lance Yang <lance.yang@xxxxxxxxx> wrote:
>
>
> On Wed, Aug 19, 2026 at 06:59:00AM +0800, Barry Song (Xiaomi) wrote:
> [...]
> >
> >-RFC v3:
> > * Rather than hard-coding `< COSTLY_ORDER` to enable the lru_cache,
> > allow the lru_cache for larger orders as long as the folio contains
> > fewer than `FOLIO_BATCH_LRU` pages. Also limit the total number of
>
> Tiny typo ... should FOLIO_BATCH_LRU be FOLIO_BATCH_SIZE here?

Lance, thanks for the review. You’re right—it should be
FOLIO_BATCH_SIZE.

Best Regards
Barry