mirror of
https://github.com/torvalds/linux.git
synced 2024-09-21 23:43:02 +00:00
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>
This commit is contained in:
parent
901796afca
commit
b38505b09b
|
@ -975,9 +975,7 @@ xfs_buf_iodone_callbacks(
|
||||||
if (bp->b_target != lasttarg ||
|
if (bp->b_target != lasttarg ||
|
||||||
time_after(jiffies, (lasttime + 5*HZ))) {
|
time_after(jiffies, (lasttime + 5*HZ))) {
|
||||||
lasttime = jiffies;
|
lasttime = jiffies;
|
||||||
xfs_alert(mp, "Device %s: metadata write error block 0x%llx",
|
xfs_buf_ioerror_alert(bp, __func__);
|
||||||
xfs_buf_target_name(bp->b_target),
|
|
||||||
(__uint64_t)XFS_BUF_ADDR(bp));
|
|
||||||
}
|
}
|
||||||
lasttarg = bp->b_target;
|
lasttarg = bp->b_target;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user