f2fs: fix blkofs_end correctly in f2fs_migrate_blocks()
authorChao Yu <chao@kernel.org>
Mon, 26 Feb 2024 01:32:05 +0000 (09:32 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 4 Mar 2024 17:51:52 +0000 (09:51 -0800)
commit8249aac1b05c28f3b35363b844b5b0194f838052
tree3135c30ba09cd531ede8c73db87cfc7268750ecc
parenta217f1873ab992c9f175d08d951334df173d3d54
f2fs: fix blkofs_end correctly in f2fs_migrate_blocks()

In f2fs_migrate_blocks(), when traversing blocks in last section,
blkofs_end should be (start_blk + blkcnt - 1) % blk_per_sec, fix it.

Signed-off-by: Chao Yu <chao@kernel.org>
Reviewed-by: Daeho Jeong <daehojeong@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c