Re: [PATCH v2] f2fs: read atomic replacements through the COW inode
From: Hungyu Lin
Date: Fri Dec 04 2026 - 06:02:32 EST
On Fri, Nov 20, 2026 at 3:02 AM Hungyu Lin <dennylin0707@xxxxxxxxx> wrote:
> Starting an atomic replacement drops the page cache and resets i_size,
> but keeps the original block mappings so the operation can be aborted.
> After a sparse write extends the replacement, buffered reads still use
> those original mappings for the skipped range and cache the old data.
> Commit removes the old gap mappings, but the cached data remains visible
> even after reopening the file. A subsequent partial write to the gap can
> write those stale bytes back to disk.
Chao, gentle ping. This is in the same atomic replace area as the fixes
you posted on 12/01, and it still applies to dev-test. Could you take
a look?
Thanks,
Hungyu