diff options
| author | Zhiguo Niu <zhiguo.niu@unisoc.com> | 2025-12-26 05:56:04 +0300 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2026-01-01 06:27:26 +0300 |
| commit | 761dac9073cd67d4705a94cd1af674945a117f4c (patch) | |
| tree | bd424ce94fdd8c3de292570f257c9c1f7a0e8075 | |
| parent | 3cb396a2c7905c3daed0b6b2c5806a95386f4581 (diff) | |
| download | linux-761dac9073cd67d4705a94cd1af674945a117f4c.tar.xz | |
f2fs: fix to add gc count stat in f2fs_gc_range
It missed the stat count in f2fs_gc_range.
Cc: stable@kernel.org
Fixes: 9bf1dcbdfdc8 ("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>
| -rw-r--r-- | fs/f2fs/gc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 6afd57fa5387..58b291d19f06 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -2096,6 +2096,7 @@ int f2fs_gc_range(struct f2fs_sb_info *sbi, if (unlikely(f2fs_cp_error(sbi))) return -EIO; + stat_inc_gc_call_count(sbi, FOREGROUND); for (segno = start_seg; segno <= end_seg; segno += SEGS_PER_SEC(sbi)) { struct gc_inode_list gc_list = { .ilist = LIST_HEAD_INIT(gc_list.ilist), |
