Re: [PATCH RFC 1/1] mm/filemap: handle large folio split race in page cache lookups

From: Kiryl Shutsemau

Date: Fri Mar 06 2026 - 15:20:52 EST


On Fri, Mar 06, 2026 at 06:41:08PM +0000, Matthew Wilcox wrote:
> On Fri, Mar 06, 2026 at 06:36:30PM +0000, Kiryl Shutsemau wrote:
> > The proposed change doesn't fix anything, but hides the problem.
> > It would be better to downgrade the VM_BUG_ON_FOLIO() to a warning +
> > retry.
>
> The trouble is that a retry only happens to work in ... whatever scenario
> this is. If there's a persistent corruption of the radix tree, a retry
> might be an infinite loop which isn't terribly helpful.

Whether the problem is transient can be useful.

--
Kiryl Shutsemau / Kirill A. Shutemov