Re: [PATCH v5] f2fs: Optimize f2fs_truncate_data_blocks_range()

From: Chao Yu
Date: Thu Jan 16 2025 - 05:48:00 EST


On 1/15/25 13:39, Yi Sun wrote:
Function f2fs_invalidate_blocks() can process consecutive
blocks at a time, so f2fs_truncate_data_blocks_range() is
optimized to use the new functionality of
f2fs_invalidate_blocks().

Add two variables @blkstart and @blklen, @blkstart records
the first address of the consecutive blocks, and @blkstart
records the number of consecutive blocks.

Signed-off-by: Yi Sun <yi.sun@xxxxxxxxxx>

Reviewed-by: Chao Yu <chao@xxxxxxxxxx>

Thanks,