Commit 67b0e42b authored by Yunlong Song's avatar Yunlong Song Committed by Jaegeuk Kim
Browse files

f2fs: change segment to section in f2fs_ioc_gc_range



f2fs_ioc_gc_range skips blocks_per_seg each time, however, f2fs_gc moves
blocks of section each time, so fix it from segment to section.

Signed-off-by: default avatarYunlong Song <yunlong.song@huawei.com>
Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 34655575
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2155,7 +2155,7 @@ do_more:
	}

	ret = f2fs_gc(sbi, range.sync, true, GET_SEGNO(sbi, range.start));
	range.start += sbi->blocks_per_seg;
	range.start += BLKS_PER_SEC(sbi);
	if (range.start <= end)
		goto do_more;
out: