diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-10-10 12:52:46 -0400 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-10-11 22:15:10 -0400 |
commit | c867cb61641751fd3d86350232d64ae2a10137d4 (patch) | |
tree | 414d38d5edd941cee2eb07f9eeb7ebaa29d1cd5b /fs/xfs/xfs_trans_buf.c | |
parent | 38f23232449c9d2c0bc8e9541cb8ab08b7c2b9ce (diff) |
xfs: remove XFS_BUF_STALE and XFS_BUF_SUPER_STALE
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_trans_buf.c')
-rw-r--r-- | fs/xfs/xfs_trans_buf.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/fs/xfs/xfs_trans_buf.c b/fs/xfs/xfs_trans_buf.c index 5e5196a269dd..d03a8ee19172 100644 --- a/fs/xfs/xfs_trans_buf.c +++ b/fs/xfs/xfs_trans_buf.c | |||
@@ -160,8 +160,11 @@ xfs_trans_get_buf(xfs_trans_t *tp, | |||
160 | bp = xfs_trans_buf_item_match(tp, target_dev, blkno, len); | 160 | bp = xfs_trans_buf_item_match(tp, target_dev, blkno, len); |
161 | if (bp != NULL) { | 161 | if (bp != NULL) { |
162 | ASSERT(xfs_buf_islocked(bp)); | 162 | ASSERT(xfs_buf_islocked(bp)); |
163 | if (XFS_FORCED_SHUTDOWN(tp->t_mountp)) | 163 | if (XFS_FORCED_SHUTDOWN(tp->t_mountp)) { |
164 | XFS_BUF_SUPER_STALE(bp); | 164 | xfs_buf_stale(bp); |
165 | xfs_buf_delwri_dequeue(bp); | ||
166 | XFS_BUF_DONE(bp); | ||
167 | } | ||
165 | 168 | ||
166 | /* | 169 | /* |
167 | * If the buffer is stale then it was binval'ed | 170 | * If the buffer is stale then it was binval'ed |
@@ -387,7 +390,9 @@ xfs_trans_read_buf( | |||
387 | } | 390 | } |
388 | if (bp->b_error) { | 391 | if (bp->b_error) { |
389 | error = bp->b_error; | 392 | error = bp->b_error; |
390 | XFS_BUF_SUPER_STALE(bp); | 393 | xfs_buf_stale(bp); |
394 | xfs_buf_delwri_dequeue(bp); | ||
395 | XFS_BUF_DONE(bp); | ||
391 | xfs_ioerror_alert("xfs_trans_read_buf", mp, | 396 | xfs_ioerror_alert("xfs_trans_read_buf", mp, |
392 | bp, blkno); | 397 | bp, blkno); |
393 | if (tp->t_flags & XFS_TRANS_DIRTY) | 398 | if (tp->t_flags & XFS_TRANS_DIRTY) |
@@ -740,7 +745,7 @@ xfs_trans_binval( | |||
740 | * rid of it. | 745 | * rid of it. |
741 | */ | 746 | */ |
742 | xfs_buf_delwri_dequeue(bp); | 747 | xfs_buf_delwri_dequeue(bp); |
743 | XFS_BUF_STALE(bp); | 748 | xfs_buf_stale(bp); |
744 | bip->bli_flags |= XFS_BLI_STALE; | 749 | bip->bli_flags |= XFS_BLI_STALE; |
745 | bip->bli_flags &= ~(XFS_BLI_INODE_BUF | XFS_BLI_LOGGED | XFS_BLI_DIRTY); | 750 | bip->bli_flags &= ~(XFS_BLI_INODE_BUF | XFS_BLI_LOGGED | XFS_BLI_DIRTY); |
746 | bip->bli_format.blf_flags &= ~XFS_BLF_INODE_BUF; | 751 | bip->bli_format.blf_flags &= ~XFS_BLF_INODE_BUF; |