diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2015-04-13 16:31:37 +0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-01-06 13:03:18 -0500 |
commit | a1c6f05733c27ba7067c06c095f49e8732a5ae17 (patch) | |
tree | cbe90c408ec3ae82d1f7d1531a4cf3287a580237 /fs/nilfs2 | |
parent | 1031bc589228ca35b3b6fb3dfe4656c0da5fbeb4 (diff) | |
download | linux-a1c6f05733c27ba7067c06c095f49e8732a5ae17.tar.bz2 |
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/nilfs2')
-rw-r--r-- | fs/nilfs2/super.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c index 354013ea22ec..c7343844e6b6 100644 --- a/fs/nilfs2/super.c +++ b/fs/nilfs2/super.c @@ -1316,13 +1316,11 @@ nilfs_mount(struct file_system_type *fs_type, int flags, } if (!s->s_root) { - char b[BDEVNAME_SIZE]; - - s_new = true; + s_new = true; /* New superblock instance created */ s->s_mode = mode; - strlcpy(s->s_id, bdevname(sd.bdev, b), sizeof(s->s_id)); + snprintf(s->s_id, sizeof(s->s_id), "%pg", sd.bdev); sb_set_blocksize(s, block_size(sd.bdev)); err = nilfs_fill_super(s, data, flags & MS_SILENT ? 1 : 0); |