Skip to content

Commit aeb7060

Browse files
Zhiguo Niugregkh
authored andcommitted
f2fs: fix to add gc count stat in f2fs_gc_range
commit 761dac9 upstream. It missed the stat count in f2fs_gc_range. Cc: stable@kernel.org Fixes: 9bf1dcb ("f2fs: fix to account gc stats correctly") Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 52917e2 commit aeb7060

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/f2fs/gc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2072,6 +2072,7 @@ int f2fs_gc_range(struct f2fs_sb_info *sbi,
20722072
if (unlikely(f2fs_cp_error(sbi)))
20732073
return -EIO;
20742074

2075+
stat_inc_gc_call_count(sbi, FOREGROUND);
20752076
for (segno = start_seg; segno <= end_seg; segno += SEGS_PER_SEC(sbi)) {
20762077
struct gc_inode_list gc_list = {
20772078
.ilist = LIST_HEAD_INIT(gc_list.ilist),

0 commit comments

Comments
 (0)