summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/debug.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-03-18 12:46:10 -0400
committerJaegeuk Kim <jaegeuk@kernel.org>2016-04-15 11:49:47 -0400
commit8c11a53fc2557eb247e3eaa4d554d45c1b55fc98 (patch)
treef1f7d6356927bea9738bae153e42ff7d5f2508f7 /fs/f2fs/debug.c
parentfaa0e55bba54b91c464850dc28376056d26fa310 (diff)
f2fs: show current mount status
This patch remains the current mount status to f2fs status info. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/debug.c')
-rw-r--r--fs/f2fs/debug.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c
index f4a61a5ff79f..818064bacfda 100644
--- a/fs/f2fs/debug.c
+++ b/fs/f2fs/debug.c
@@ -216,8 +216,9 @@ static int stat_show(struct seq_file *s, void *v)
216 list_for_each_entry(si, &f2fs_stat_list, stat_list) { 216 list_for_each_entry(si, &f2fs_stat_list, stat_list) {
217 update_general_status(si->sbi); 217 update_general_status(si->sbi);
218 218
219 seq_printf(s, "\n=====[ partition info(%pg). #%d ]=====\n", 219 seq_printf(s, "\n=====[ partition info(%pg). #%d, %s]=====\n",
220 si->sbi->sb->s_bdev, i++); 220 si->sbi->sb->s_bdev, i++,
221 f2fs_readonly(si->sbi->sb) ? "RO": "RW");
221 seq_printf(s, "[SB: 1] [CP: 2] [SIT: %d] [NAT: %d] ", 222 seq_printf(s, "[SB: 1] [CP: 2] [SIT: %d] [NAT: %d] ",
222 si->sit_area_segs, si->nat_area_segs); 223 si->sit_area_segs, si->nat_area_segs);
223 seq_printf(s, "[SSA: %d] [MAIN: %d", 224 seq_printf(s, "[SSA: %d] [MAIN: %d",