summaryrefslogtreecommitdiff
path: root/fs/f2fs/recovery.c
diff options
context:
space:
mode:
authorYunlong Song <yunlong.song@huawei.com>2018-10-24 11:08:30 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2018-11-27 02:53:55 +0300
commitd6c66cd19ef322fe0d51ba09ce1b7f386acab04a (patch)
treea98bdf5573f03d0e7f69dcc927f4f709f842def7 /fs/f2fs/recovery.c
parenta8075dc484cf10ebdb07bee2b17322fb0a846309 (diff)
downloadlinux-d6c66cd19ef322fe0d51ba09ce1b7f386acab04a.tar.xz
f2fs: fix count of seg_freed to make sec_freed correct
When sbi->segs_per_sec > 1, and if some segno has 0 valid blocks before gc starts, do_garbage_collect will skip counting seg_freed++, and this will cause seg_freed < sbi->segs_per_sec and finally skip sec_freed++. Signed-off-by: Yunlong Song <yunlong.song@huawei.com> Signed-off-by: Chao Yu <yuchao0@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/recovery.c')
0 files changed, 0 insertions, 0 deletions