From: majianpeng Date: Fri, 1 Feb 2013 07:00:30 +0000 (+0800) Subject: f2fs: add device name in debugfs X-Git-Tag: upstream/snapshot3+hdmi~5636^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f83759e28372e593879f4dd20eb6c5ba6c4f393a;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index c8c3730..025b9e2 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) mutex_lock(&f2fs_stat_mutex); list_for_each_entry_safe(si, next, &f2fs_stat_list, stat_list) { + char devname[BDEVNAME_SIZE]; update_general_status(si->sbi); - seq_printf(s, "\n=====[ partition info. #%d ]=====\n", i++); + seq_printf(s, "\n=====[ partition info(%s). #%d ]=====\n", + bdevname(si->sbi->sb->s_bdev, devname), i++); seq_printf(s, "[SB: 1] [CP: 2] [SIT: %d] [NAT: %d] ", si->sit_area_segs, si->nat_area_segs); seq_printf(s, "[SSA: %d] [MAIN: %d",