Lines Matching refs:ASSERT
129 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_buf_item_size()
137 ASSERT(bip->__bli_format.blf_flags & XFS_BLF_CANCEL); in xfs_buf_item_size()
145 ASSERT(bip->bli_flags & XFS_BLI_LOGGED); in xfs_buf_item_size()
245 ASSERT(blfp->blf_flags & XFS_BLF_CANCEL); in xfs_buf_item_format_segment()
308 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_buf_item_format()
309 ASSERT((bip->bli_flags & XFS_BLI_LOGGED) || in xfs_buf_item_format()
311 ASSERT((bip->bli_flags & XFS_BLI_STALE) || in xfs_buf_item_format()
314 ASSERT(!(bip->bli_flags & XFS_BLI_ORDERED) || in xfs_buf_item_format()
367 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_buf_item_pin()
368 ASSERT((bip->bli_flags & XFS_BLI_LOGGED) || in xfs_buf_item_pin()
402 ASSERT(bp->b_log_item == bip); in xfs_buf_item_unpin()
403 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_buf_item_unpin()
413 ASSERT(bip->bli_flags & XFS_BLI_STALE); in xfs_buf_item_unpin()
414 ASSERT(xfs_buf_islocked(bp)); in xfs_buf_item_unpin()
415 ASSERT(bp->b_flags & XBF_STALE); in xfs_buf_item_unpin()
416 ASSERT(bip->__bli_format.blf_flags & XFS_BLF_CANCEL); in xfs_buf_item_unpin()
454 ASSERT(bp->b_log_item == NULL); in xfs_buf_item_unpin()
516 ASSERT(!(bip->bli_flags & XFS_BLI_STALE)); in xfs_buf_item_push()
616 ASSERT((!ordered && dirty == xfs_buf_item_dirty_format(bip)) || in xfs_buf_item_unlock()
618 ASSERT(!stale || (bip->__bli_format.blf_flags & XFS_BLF_CANCEL)); in xfs_buf_item_unlock()
636 ASSERT(!stale || test_bit(XFS_LI_ABORTED, &lip->li_flags)); in xfs_buf_item_unlock()
698 ASSERT(bip->bli_formats == NULL); in xfs_buf_item_get_format()
744 ASSERT(bp->b_target->bt_mount == mp); in xfs_buf_item_init()
746 ASSERT(bip->bli_item.li_type == XFS_LI_BUF); in xfs_buf_item_init()
747 ASSERT(!bp->b_transp); in xfs_buf_item_init()
748 ASSERT(bip->bli_buf == bp); in xfs_buf_item_init()
766 ASSERT(error == 0); in xfs_buf_item_init()
961 ASSERT(!(bip->bli_item.li_flags & XFS_LI_IN_AIL)); in xfs_buf_item_relse()
985 ASSERT(xfs_buf_islocked(bp)); in xfs_buf_attach_iodone()
990 ASSERT(bp->b_iodone == NULL || in xfs_buf_attach_iodone()
1108 ASSERT(bp->b_iodone != NULL); in xfs_buf_iodone_callback_error()
1217 ASSERT(BUF_ITEM(lip)->bli_buf == bp); in xfs_buf_iodone()