diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2015-04-13 08:31:37 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-01-06 13:03:18 -0500 |
commit | a1c6f05733c27ba7067c06c095f49e8732a5ae17 (patch) | |
tree | cbe90c408ec3ae82d1f7d1531a4cf3287a580237 /fs/f2fs/debug.c | |
parent | 1031bc589228ca35b3b6fb3dfe4656c0da5fbeb4 (diff) |
fs: use block_device name vsprintf helper
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/f2fs/debug.c')
-rw-r--r-- | fs/f2fs/debug.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index 478e5d54154f..ad1b18a7705b 100644 --- a/fs/f2fs/debug.c +++ b/fs/f2fs/debug.c | |||
@@ -211,12 +211,10 @@ static int stat_show(struct seq_file *s, void *v) | |||
211 | 211 | ||
212 | mutex_lock(&f2fs_stat_mutex); | 212 | mutex_lock(&f2fs_stat_mutex); |
213 | list_for_each_entry(si, &f2fs_stat_list, stat_list) { | 213 | list_for_each_entry(si, &f2fs_stat_list, stat_list) { |
214 | char devname[BDEVNAME_SIZE]; | ||
215 | |||
216 | update_general_status(si->sbi); | 214 | update_general_status(si->sbi); |
217 | 215 | ||
218 | seq_printf(s, "\n=====[ partition info(%s). #%d ]=====\n", | 216 | seq_printf(s, "\n=====[ partition info(%pg). #%d ]=====\n", |
219 | bdevname(si->sbi->sb->s_bdev, devname), i++); | 217 | si->sbi->sb->s_bdev, i++); |
220 | seq_printf(s, "[SB: 1] [CP: 2] [SIT: %d] [NAT: %d] ", | 218 | seq_printf(s, "[SB: 1] [CP: 2] [SIT: %d] [NAT: %d] ", |
221 | si->sit_area_segs, si->nat_area_segs); | 219 | si->sit_area_segs, si->nat_area_segs); |
222 | seq_printf(s, "[SSA: %d] [MAIN: %d", | 220 | seq_printf(s, "[SSA: %d] [MAIN: %d", |