[PATCH 8/9] xfs: use xfs_ioerror_alert in xfs_buf_iodone_callbacks

Christoph Hellwig
2011-10-06T21:06:41Z

[-- Attachment #1: xfs-cleanup-xfs_buf_iodone_callbacks --]
[-- Type: text/plain, Size: 864 bytes --]

Use xfs_ioerror_alert instead of opencoding a very similar error
message.

Signed-off-by: Christoph Hellwig <hch@lst.de>

Index: xfs/fs/xfs/xfs_buf_item.c
===================================================================
--- xfs.orig/fs/xfs/xfs_buf_item.c 2011-10-06 16:56:55.324148672 -0400
+++ xfs/fs/xfs/xfs_buf_item.c 2011-10-06 16:57:04.444144227 -0400
@@ -976,9 +976,7 @@ xfs_buf_iodone_callbacks(
if (bp->b_target != lasttarg ||
time_after(jiffies, (lasttime + 5*HZ))) {
lasttime = jiffies;
- xfs_alert(mp, "Device %s: metadata write error block 0x%llx",
- xfs_buf_target_name(bp->b_target),
- (__uint64_t)XFS_BUF_ADDR(bp));
+ xfs_ioerror_alert(bp, "xfs_buf_iodone_callbacks");
}
lasttarg = bp->b_target;