Re: [PATCH v5 10/16] f2fs: support partial uptodate large folio read
From: Chao Yu
Date: Mon Oct 19 2026 - 07:55:37 EST
On 10/14/26 14:44, Nanzhe Zhao wrote:
> +static void f2fs_truncate_read_extent(struct inode *inode, struct folio *folio,
> + pgoff_t offset, block_t block_nr,
> + unsigned int *len_blks)
> +{
> + struct f2fs_sb_info *sbi = F2FS_I_SB(inode);
> + struct f2fs_folio_state *ffs;
> + unsigned int next, end;
> +
> + if (!f2fs_folio_has_ffs(folio) || *len_blks <= 1)
For newly allocated large folio which doesn't have ffs, we should still update
*len_blks before return?
Thanks,