aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_buf_item.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2011-10-10 12:52:50 -0400
committerAlex Elder <aelder@sgi.com>2011-10-11 22:15:10 -0400
commitb38505b09b7854d446b2f60b4414e3231277aa1a (patch)
treef1f7984a14e6fdeee5b87df245c7f67dd9a0d602 /fs/xfs/xfs_buf_item.c
parent901796afca0d31d97bf6d1bf2ab251a93a4b8c83 (diff)
xfs: use xfs_ioerror_alert in xfs_buf_iodone_callbacks
Use xfs_ioerror_alert instead of opencoding a very similar error message. 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_item.c')
-rw-r--r--fs/xfs/xfs_buf_item.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/xfs/xfs_buf_item.c b/fs/xfs/xfs_buf_item.c
index 06a76ca99659..65d6f4432d28 100644
--- a/fs/xfs/xfs_buf_item.c
+++ b/fs/xfs/xfs_buf_item.c
@@ -975,9 +975,7 @@ xfs_buf_iodone_callbacks(
975 if (bp->b_target != lasttarg || 975 if (bp->b_target != lasttarg ||
976 time_after(jiffies, (lasttime + 5*HZ))) { 976 time_after(jiffies, (lasttime + 5*HZ))) {
977 lasttime = jiffies; 977 lasttime = jiffies;
978 xfs_alert(mp, "Device %s: metadata write error block 0x%llx", 978 xfs_buf_ioerror_alert(bp, __func__);
979 xfs_buf_target_name(bp->b_target),
980 (__uint64_t)XFS_BUF_ADDR(bp));
981 } 979 }
982 lasttarg = bp->b_target; 980 lasttarg = bp->b_target;
983 981