Re: [f2fs-dev] [PATCH v2 12/20] f2fs: support subpage blocks in defragmentation
From: Chao Yu
Date: Tue Nov 17 2026 - 06:25:24 EST
On 11/16/26 12:08, Daeho Jeong wrote:
> From: Daeho Jeong <daehojeong@xxxxxxxxxx>
>
> Mark only the target block, not its whole page, dirty when redirtying
> data for defragmentation. Remove the -EOPNOTSUPP check.
>
> Read a multi-block folio once through ->read_folio() instead of each
> block synchronously, and redirty the folio that was read after locking
> it. This also applies to large folios when the block size equals
> PAGE_SIZE.
>
> Read compressed files through ->read_folio() as well, with any block
> size. f2fs_get_lock_data_folio() reads the mapped block as it is, so a
> block of a compressed cluster that was not in the page cache was read
> without decompression, and defragmentation wrote the compressed data
> back as file data.
>
> Signed-off-by: Daeho Jeong <daehojeong@xxxxxxxxxx>
Reviewed-by: Chao Yu <chao@xxxxxxxxxx>
Thanks,