aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authormajianpeng <majianpeng@gmail.com>2013-02-01 02:00:30 -0500
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-02-11 17:15:01 -0500
commitf83759e28372e593879f4dd20eb6c5ba6c4f393a (patch)
treedc2c42ea1778e74b58387a73bf136f1a40a1a1bd /fs/f2fs
parentfacb0205401a6ce4be410e1f4b9357bbc6caa36a (diff)
f2fs: add device name in debugfs
In file status, it can't distinguish between different devices. So add device name to do this function. Signed-off-by: Jianpeng Ma <majianpeng@gmail.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/debug.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c
index c8c37307b326..025b9e2f935d 100644
--- a/fs/f2fs/debug.c
+++ b/fs/f2fs/debug.c
@@ -183,10 +183,12 @@ static int stat_show(struct seq_file *s, void *v)
183 183
184 mutex_lock(&f2fs_stat_mutex); 184 mutex_lock(&f2fs_stat_mutex);
185 list_for_each_entry_safe(si, next, &f2fs_stat_list, stat_list) { 185 list_for_each_entry_safe(si, next, &f2fs_stat_list, stat_list) {
186 char devname[BDEVNAME_SIZE];
186 187
187 update_general_status(si->sbi); 188 update_general_status(si->sbi);
188 189
189 seq_printf(s, "\n=====[ partition info. #%d ]=====\n", i++); 190 seq_printf(s, "\n=====[ partition info(%s). #%d ]=====\n",
191 bdevname(si->sbi->sb->s_bdev, devname), i++);
190 seq_printf(s, "[SB: 1] [CP: 2] [SIT: %d] [NAT: %d] ", 192 seq_printf(s, "[SB: 1] [CP: 2] [SIT: %d] [NAT: %d] ",
191 si->sit_area_segs, si->nat_area_segs); 193 si->sit_area_segs, si->nat_area_segs);
192 seq_printf(s, "[SSA: %d] [MAIN: %d", 194 seq_printf(s, "[SSA: %d] [MAIN: %d",