From: Christoph Hellwig Date: Mon, 10 Oct 2011 16:52:50 +0000 (+0000) Subject: xfs: use xfs_ioerror_alert in xfs_buf_iodone_callbacks X-Git-Tag: next-20111012~77^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=73e215d722e349558f94bf6eae073516e425ddc1;p=karo-tx-linux.git 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 Reviewed-by: Dave Chinner Signed-off-by: Alex Elder --- 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( 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;