xfs
[Top] [All Lists]

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

To: xfs@xxxxxxxxxxx
Subject: [PATCH 8/9] xfs: use xfs_ioerror_alert in xfs_buf_iodone_callbacks
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Thu, 06 Oct 2011 17:06:15 -0400
References: <20111006210607.175284390@xxxxxxxxxxxxxxxxxxxxxx>
User-agent: quilt/0.48-1
Use xfs_ioerror_alert instead of opencoding a very similar error
message.

Signed-off-by: Christoph Hellwig <hch@xxxxxx>

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;
 

<Prev in Thread] Current Thread [Next in Thread>