Re: [PATCH v4 0/2] mm: improve folio refcount scalability

From: Andrew Morton

Date: Mon Jun 08 2026 - 18:48:15 EST


On Mon, 08 Jun 2026 21:53:01 +0000 "Gladyshev Ilya" <ilya.gladyshev@xxxxxxxxx> wrote:

> This patch optimizes small file read performance and overall folio refcount
> scalability by refactoring page_ref_add_unless [core of folio_try_get].
> This is alternative approach to previous attempts to fix small read
> performance by avoiding refcount bumps [1][2].

Thanks. Nice numbers.

AI review had some things to say:
https://sashiko.dev/#/patchset/df26082871b4c65b2bd38d409026237c08572836@xxxxxxxxx

I'm not sure we want all those new VM_BUG_ON_PAGE() calls in the long
term. They look like development-time assistance. Perhaps you could
make those a standalone patch at tail-of-series so we can keep it in
linux-next for a couple of months then throw it away before any
upstreaming?