summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/debug.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-01-09 13:45:17 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2016-01-11 15:56:42 -0800
commit42190d2a8663f3e181894dc4e37a1af06aab2cbb (patch)
treee6240dfb414053f3c4f937f32597cd2f0fc69408 /fs/f2fs/debug.c
parentd0239e1bf5204d602281f93c01d46bcf3531098d (diff)
downloadop-kernel-dev-42190d2a8663f3e181894dc4e37a1af06aab2cbb.zip
op-kernel-dev-42190d2a8663f3e181894dc4e37a1af06aab2cbb.tar.gz
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 b73e8e1..48f2ae9 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",
OpenPOWER on IntegriCloud