diff options
Diffstat (limited to 'fs/xfs/xfs_trans_buf.c')
-rw-r--r-- | fs/xfs/xfs_trans_buf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_trans_buf.c b/fs/xfs/xfs_trans_buf.c index 9132d162c4b8..2ec196b6c079 100644 --- a/fs/xfs/xfs_trans_buf.c +++ b/fs/xfs/xfs_trans_buf.c | |||
@@ -56,7 +56,7 @@ xfs_trans_buf_item_match( | |||
56 | if (blip->bli_item.li_type == XFS_LI_BUF && | 56 | if (blip->bli_item.li_type == XFS_LI_BUF && |
57 | blip->bli_buf->b_target == target && | 57 | blip->bli_buf->b_target == target && |
58 | XFS_BUF_ADDR(blip->bli_buf) == blkno && | 58 | XFS_BUF_ADDR(blip->bli_buf) == blkno && |
59 | XFS_BUF_COUNT(blip->bli_buf) == len) | 59 | BBTOB(blip->bli_buf->b_length) == len) |
60 | return blip->bli_buf; | 60 | return blip->bli_buf; |
61 | } | 61 | } |
62 | 62 | ||
@@ -585,7 +585,7 @@ xfs_trans_log_buf(xfs_trans_t *tp, | |||
585 | 585 | ||
586 | ASSERT(bp->b_transp == tp); | 586 | ASSERT(bp->b_transp == tp); |
587 | ASSERT(bip != NULL); | 587 | ASSERT(bip != NULL); |
588 | ASSERT((first <= last) && (last < XFS_BUF_COUNT(bp))); | 588 | ASSERT(first <= last && last < BBTOB(bp->b_length)); |
589 | ASSERT(bp->b_iodone == NULL || | 589 | ASSERT(bp->b_iodone == NULL || |
590 | bp->b_iodone == xfs_buf_iodone_callbacks); | 590 | bp->b_iodone == xfs_buf_iodone_callbacks); |
591 | 591 | ||