diff options
author | Yunlong Song <yunlong.song@huawei.com> | 2018-10-30 15:37:55 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-13 10:51:49 +0300 |
commit | 313f1fef6650b76d194b2e9071aa64b43194b0c4 (patch) | |
tree | 8b317215cf8f0be8b80fc8f77957b3e095da142e /fs | |
parent | 859c93a04b61de9aa9d75f8f09a7f9ab0b6af3a5 (diff) | |
download | linux-313f1fef6650b76d194b2e9071aa64b43194b0c4.tar.xz |
f2fs: change segment to section in f2fs_ioc_gc_range
[ Upstream commit 67b0e42b768c9ddc3fd5ca1aee3db815cfaa635c ]
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 <yunlong.song@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/f2fs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 187bf7e260c9..5eef2a8b29ab 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -2143,7 +2143,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: |