aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_trans_buf.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_trans_buf.c')
-rw-r--r--fs/xfs/xfs_trans_buf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/xfs/xfs_trans_buf.c b/fs/xfs/xfs_trans_buf.c
index 75798412859a..8ee29ca132dc 100644
--- a/fs/xfs/xfs_trans_buf.c
+++ b/fs/xfs/xfs_trans_buf.c
@@ -155,7 +155,7 @@ xfs_trans_get_buf_map(
155 ASSERT(xfs_buf_islocked(bp)); 155 ASSERT(xfs_buf_islocked(bp));
156 if (XFS_FORCED_SHUTDOWN(tp->t_mountp)) { 156 if (XFS_FORCED_SHUTDOWN(tp->t_mountp)) {
157 xfs_buf_stale(bp); 157 xfs_buf_stale(bp);
158 XFS_BUF_DONE(bp); 158 bp->b_flags |= XBF_DONE;
159 } 159 }
160 160
161 ASSERT(bp->b_transp == tp); 161 ASSERT(bp->b_transp == tp);
@@ -518,7 +518,7 @@ xfs_trans_log_buf(xfs_trans_t *tp,
518 * inside the b_bdstrat callback so that this won't get written to 518 * inside the b_bdstrat callback so that this won't get written to
519 * disk. 519 * disk.
520 */ 520 */
521 XFS_BUF_DONE(bp); 521 bp->b_flags |= XBF_DONE;
522 522
523 ASSERT(atomic_read(&bip->bli_refcount) > 0); 523 ASSERT(atomic_read(&bip->bli_refcount) > 0);
524 bp->b_iodone = xfs_buf_iodone_callbacks; 524 bp->b_iodone = xfs_buf_iodone_callbacks;
@@ -534,8 +534,8 @@ xfs_trans_log_buf(xfs_trans_t *tp,
534 */ 534 */
535 if (bip->bli_flags & XFS_BLI_STALE) { 535 if (bip->bli_flags & XFS_BLI_STALE) {
536 bip->bli_flags &= ~XFS_BLI_STALE; 536 bip->bli_flags &= ~XFS_BLI_STALE;
537 ASSERT(XFS_BUF_ISSTALE(bp)); 537 ASSERT(bp->b_flags & XBF_STALE);
538 XFS_BUF_UNSTALE(bp); 538 bp->b_flags &= ~XBF_STALE;
539 bip->__bli_format.blf_flags &= ~XFS_BLF_CANCEL; 539 bip->__bli_format.blf_flags &= ~XFS_BLF_CANCEL;
540 } 540 }
541 541
@@ -600,7 +600,7 @@ xfs_trans_binval(
600 * If the buffer is already invalidated, then 600 * If the buffer is already invalidated, then
601 * just return. 601 * just return.
602 */ 602 */
603 ASSERT(XFS_BUF_ISSTALE(bp)); 603 ASSERT(bp->b_flags & XBF_STALE);
604 ASSERT(!(bip->bli_flags & (XFS_BLI_LOGGED | XFS_BLI_DIRTY))); 604 ASSERT(!(bip->bli_flags & (XFS_BLI_LOGGED | XFS_BLI_DIRTY)));
605 ASSERT(!(bip->__bli_format.blf_flags & XFS_BLF_INODE_BUF)); 605 ASSERT(!(bip->__bli_format.blf_flags & XFS_BLF_INODE_BUF));
606 ASSERT(!(bip->__bli_format.blf_flags & XFS_BLFT_MASK)); 606 ASSERT(!(bip->__bli_format.blf_flags & XFS_BLFT_MASK));