diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-10-10 12:52:51 -0400 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-10-11 22:15:11 -0400 |
commit | 02b102df1502a7ea4167d115510e1e8fe6467f12 (patch) | |
tree | b8895eb40f8690051a44858eeb497f61bfc2b74d /fs/xfs/xfs_buf.c | |
parent | b38505b09b7854d446b2f60b4414e3231277aa1a (diff) |
xfs: remove xfs_buf_target_name
The calling convention that returns a pointer to a static buffer is
fairly nasty, so just opencode it in the only caller that is left.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_buf.c')
-rw-r--r-- | fs/xfs/xfs_buf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index 0a767fca0305..6f615c259411 100644 --- a/fs/xfs/xfs_buf.c +++ b/fs/xfs/xfs_buf.c | |||
@@ -1457,9 +1457,13 @@ xfs_setsize_buftarg_flags( | |||
1457 | btp->bt_smask = sectorsize - 1; | 1457 | btp->bt_smask = sectorsize - 1; |
1458 | 1458 | ||
1459 | if (set_blocksize(btp->bt_bdev, sectorsize)) { | 1459 | if (set_blocksize(btp->bt_bdev, sectorsize)) { |
1460 | char name[BDEVNAME_SIZE]; | ||
1461 | |||
1462 | bdevname(btp->bt_bdev, name); | ||
1463 | |||
1460 | xfs_warn(btp->bt_mount, | 1464 | xfs_warn(btp->bt_mount, |
1461 | "Cannot set_blocksize to %u on device %s\n", | 1465 | "Cannot set_blocksize to %u on device %s\n", |
1462 | sectorsize, xfs_buf_target_name(btp)); | 1466 | sectorsize, name); |
1463 | return EINVAL; | 1467 | return EINVAL; |
1464 | } | 1468 | } |
1465 | 1469 | ||