Re: [f2fs-dev] [PATCH v2 05/20] f2fs: convert inode dirty page counters to dirty block counters

From: Chao Yu

Date: Tue Nov 17 2026 - 03:54:54 EST


On 11/16/26 12:08, Daeho Jeong wrote:
> From: Daeho Jeong <daehojeong@xxxxxxxxxx>
>
> The per-inode dirty counter is compared against block based thresholds
> such as min_fsync_blocks and BLKS_PER_SEG, and it already holds blocks:
> its helpers take page counts and convert them. Rename it to
> dirty_blocks and make the helpers take block counts, and convert to
> pages where a counter is compared with page based values. The
> conversions are no-ops when the block size equals PAGE_SIZE.
>
> The callers that account one block for a folio are left as they are,
> which is still correct when the block size equals PAGE_SIZE. Later
> patches convert them.
>
> Signed-off-by: Daeho Jeong <daehojeong@xxxxxxxxxx>
Reviewed-by: Chao Yu <chao@xxxxxxxxxx>

Thanks,