Re: [f2fs-dev] [PATCH v2 14/20] f2fs: support subpage blocks in fs-verity enablement

From: Chao Yu

Date: Tue Nov 17 2026 - 06:38:32 EST


On 11/16/26 12:08, Daeho Jeong wrote:
> From: Daeho Jeong <daehojeong@xxxxxxxxxx>
>
> Check verity per block. While enabling verity, dirty and write back
> only the data blocks below i_size in the folios before the verity
> metadata. Do not zero the blocks past i_size on read while enabling
> verity, since GC can read a folio of the verity metadata that is already
> written. Remove the -EOPNOTSUPP checks. The changes for enabling
> verity also apply to large folios when the block size equals PAGE_SIZE.
>
> Stop the data reads of a verity file at i_size in
> f2fs_read_data_large_folio(), so that the blocks past EOF in the folio
> that spans EOF are zeroed instead of read. A pinned file can have such
> blocks allocated without being zeroed, and fs-verity rejects non-zero
> data past EOF. The reads of the verity metadata still go past i_size.
>
> Signed-off-by: Daeho Jeong <daehojeong@xxxxxxxxxx>
Reviewed-by: Chao Yu <chao@xxxxxxxxxx>

Thanks,