From: Yunlong Song Date: Tue, 30 Oct 2018 12:37:55 +0000 (+0800) Subject: f2fs: change segment to section in f2fs_ioc_gc_range X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~5618^2~34 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=67b0e42b768c9ddc3fd5ca1aee3db815cfaa635c;p=linux.git 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: Yunlong Song Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index a114eacc0d7e..c25228a1593c 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -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: