diff options
Diffstat (limited to 'fs/xfs/xfs_buf.c')
-rw-r--r-- | fs/xfs/xfs_buf.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index 9fa9c4304613..afe7645e4b2b 100644 --- a/fs/xfs/xfs_buf.c +++ b/fs/xfs/xfs_buf.c | |||
@@ -1156,7 +1156,7 @@ xfs_bwrite( | |||
1156 | ASSERT(xfs_buf_islocked(bp)); | 1156 | ASSERT(xfs_buf_islocked(bp)); |
1157 | 1157 | ||
1158 | bp->b_flags |= XBF_WRITE; | 1158 | bp->b_flags |= XBF_WRITE; |
1159 | bp->b_flags &= ~(XBF_ASYNC | XBF_READ | _XBF_DELWRI_Q); | 1159 | bp->b_flags &= ~(XBF_ASYNC | XBF_READ | _XBF_DELWRI_Q | XBF_WRITE_FAIL); |
1160 | 1160 | ||
1161 | xfs_bdstrat_cb(bp); | 1161 | xfs_bdstrat_cb(bp); |
1162 | 1162 | ||
@@ -1501,6 +1501,12 @@ xfs_wait_buftarg( | |||
1501 | struct xfs_buf *bp; | 1501 | struct xfs_buf *bp; |
1502 | bp = list_first_entry(&dispose, struct xfs_buf, b_lru); | 1502 | bp = list_first_entry(&dispose, struct xfs_buf, b_lru); |
1503 | list_del_init(&bp->b_lru); | 1503 | list_del_init(&bp->b_lru); |
1504 | if (bp->b_flags & XBF_WRITE_FAIL) { | ||
1505 | xfs_alert(btp->bt_mount, | ||
1506 | "Corruption Alert: Buffer at block 0x%llx had permanent write failures!\n" | ||
1507 | "Please run xfs_repair to determine the extent of the problem.", | ||
1508 | (long long)bp->b_bn); | ||
1509 | } | ||
1504 | xfs_buf_rele(bp); | 1510 | xfs_buf_rele(bp); |
1505 | } | 1511 | } |
1506 | if (loop++ != 0) | 1512 | if (loop++ != 0) |
@@ -1784,7 +1790,7 @@ __xfs_buf_delwri_submit( | |||
1784 | 1790 | ||
1785 | blk_start_plug(&plug); | 1791 | blk_start_plug(&plug); |
1786 | list_for_each_entry_safe(bp, n, io_list, b_list) { | 1792 | list_for_each_entry_safe(bp, n, io_list, b_list) { |
1787 | bp->b_flags &= ~(_XBF_DELWRI_Q | XBF_ASYNC); | 1793 | bp->b_flags &= ~(_XBF_DELWRI_Q | XBF_ASYNC | XBF_WRITE_FAIL); |
1788 | bp->b_flags |= XBF_WRITE; | 1794 | bp->b_flags |= XBF_WRITE; |
1789 | 1795 | ||
1790 | if (!wait) { | 1796 | if (!wait) { |