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/xfs | |
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/xfs')
-rw-r--r-- | fs/xfs/xfs_buf.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index 3243cdf97f33..ace91e7c713e 100644 --- a/fs/xfs/xfs_buf.c +++ b/fs/xfs/xfs_buf.c | |||
@@ -1632,13 +1632,9 @@ xfs_setsize_buftarg( | |||
1632 | btp->bt_meta_sectormask = sectorsize - 1; | 1632 | btp->bt_meta_sectormask = sectorsize - 1; |
1633 | 1633 | ||
1634 | if (set_blocksize(btp->bt_bdev, sectorsize)) { | 1634 | if (set_blocksize(btp->bt_bdev, sectorsize)) { |
1635 | char name[BDEVNAME_SIZE]; | ||
1636 | |||
1637 | bdevname(btp->bt_bdev, name); | ||
1638 | |||
1639 | xfs_warn(btp->bt_mount, | 1635 | xfs_warn(btp->bt_mount, |
1640 | "Cannot set_blocksize to %u on device %s", | 1636 | "Cannot set_blocksize to %u on device %pg", |
1641 | sectorsize, name); | 1637 | sectorsize, btp->bt_bdev); |
1642 | return -EINVAL; | 1638 | return -EINVAL; |
1643 | } | 1639 | } |
1644 | 1640 | ||