Re: [f2fs-dev] [PATCH v4 2/2] f2fs: fix to zero post-EOF data when extending file size
From: Chao Yu
Date: Tue Aug 11 2026 - 03:29:57 EST
On 8/10/26 16:52, Zhiguo Niu wrote:
> Chao Yu via Linux-f2fs-devel <linux-f2fs-devel@xxxxxxxxxxxxxxxxxxxxx>
>> When extending file size (e.g. via truncate, fallocate, or write) across an
>> unaligned EOF boundary, we need to ensure that post-EOF data in the partial
>> page is zeroed out in pagecache and marked dirty, meanwhile, tagging the inode
>> with FI_ZERO_POST_EOF, so that following checkpoint() and fsync() can persist
> Hi Chao,
> It looks like this version doesn't have this flag "FI_ZERO_POST_EOF"?
Thanks for catching this, fixed in v5.
Thanks,
> thanks!