summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/debug.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-01-09 22:45:17 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2016-01-12 00:56:42 +0100
commit42190d2a8663f3e181894dc4e37a1af06aab2cbb (patch)
treee6240dfb414053f3c4f937f32597cd2f0fc69408 /fs/f2fs/debug.c
parentf2fs: detect idle time depending on user behavior (diff)
downloadlinux-42190d2a8663f3e181894dc4e37a1af06aab2cbb.tar.xz
linux-42190d2a8663f3e181894dc4e37a1af06aab2cbb.zip
f2fs: monitor the number of background checkpoint
This patch adds to show the number of background checkpoint. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/debug.c')
-rw-r--r--fs/f2fs/debug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c
index b73e8e133c8b..48f2ae9452ef 100644
--- a/fs/f2fs/debug.c
+++ b/fs/f2fs/debug.c
@@ -272,7 +272,8 @@ static int stat_show(struct seq_file *s, void *v)
si->dirty_count);
seq_printf(s, " - Prefree: %d\n - Free: %d (%d)\n\n",
si->prefree_count, si->free_segs, si->free_secs);
- seq_printf(s, "CP calls: %d\n", si->cp_count);
+ seq_printf(s, "CP calls: %d (BG: %d)\n",
+ si->cp_count, si->bg_cp_count);
seq_printf(s, "GC calls: %d (BG: %d)\n",
si->call_count, si->bg_gc);
seq_printf(s, " - data segments : %d (%d)\n",