]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
xfs: use xfs_ioerror_alert in xfs_buf_iodone_callbacks
authorChristoph Hellwig <hch@infradead.org>
Mon, 10 Oct 2011 16:52:50 +0000 (16:52 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 12 Oct 2011 02:15:10 +0000 (21:15 -0500)
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>
fs/xfs/xfs_buf_item.c

index 06a76ca996597c64d32ec46e4ce7e3318abe6446..65d6f4432d285e6da10a7bc02651b6a57d428524 100644 (file)
@@ -975,9 +975,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_buf_ioerror_alert(bp, __func__);
        }
        lasttarg = bp->b_target;