Skip to content

Commit

Permalink
f2fs: add device name in debugfs
Browse files Browse the repository at this point in the history
In file status, it can't distinguish between different devices.
So add device name to do this function.

Signed-off-by: Jianpeng Ma <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
  • Loading branch information
majianpeng authored and Jaegeuk Kim committed Feb 11, 2013
1 parent facb020 commit f83759e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/f2fs/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f83759e

Please sign in to comment.