]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: fix to account cp stats correctly
authorChao Yu <chao@kernel.org>
Tue, 8 Aug 2023 00:59:49 +0000 (08:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:48:33 +0000 (09:48 +0200)
commite309f455801f798b91b65252e1844c6cc14aa095
tree77c3163c5a65b5ad2de051a212c04cc111a6536c
parent0e2577074b459bba7f4016f4d725ede37d48bb22
f2fs: fix to account cp stats correctly

[ Upstream commit eb61c2cca2eb2110cc7b61a7bc15b3850977a778 ]

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>
Signed-off-by: Sasha Levin <sashal@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