On Tue, Jul 02, 2024 at 05:33:58PM -0400, David Wysochanski wrote: [annoying full quote snipped] > Was your test running both reads and truncates on the same file in parallel? > > Once the read completes I believe the page is unlocked. Then if > truncates are running in parallel, then I think this can happen > (folio->mapping = NULL as a result of truncate). Yes, folio->mapping is only stable when the folio is locked.