f2fs: fix to account cp stats correctly
authorChao Yu <chao@kernel.org>
Tue, 8 Aug 2023 00:59:49 +0000 (08:59 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 14 Aug 2023 20:42:05 +0000 (13:42 -0700)
commiteb61c2cca2eb2110cc7b61a7bc15b3850977a778
tree4cd4fa60ba9a65d1fa7475ba1c132adcb13d7aa2
parent9bf1dcbdfdc8892d9cfeaeab02519c0ecf17fe51
f2fs: fix to account cp stats correctly

cp_foreground_calls sysfs entry shows total CP call count rather than
foreground CP call count, fix it.

Fixes: fc7100ea2a52 ("f2fs: Add f2fs stats to sysfs")
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
fs/f2fs/debug.c
fs/f2fs/f2fs.h
fs/f2fs/gc.c
fs/f2fs/recovery.c
fs/f2fs/segment.c
fs/f2fs/super.c
fs/f2fs/sysfs.c