Lines Matching refs:ASSERT

107 		ASSERT(XFS_BUF_VALUSEMA(bp) <= 0);  in xfs_trans_get_buf()
119 ASSERT(!XFS_BUF_ISDELAYWRITE(bp)); in xfs_trans_get_buf()
121 ASSERT(XFS_BUF_FSPRIVATE2(bp, xfs_trans_t *) == tp); in xfs_trans_get_buf()
123 ASSERT(bip != NULL); in xfs_trans_get_buf()
124 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_get_buf()
144 ASSERT(!XFS_BUF_GETERROR(bp)); in xfs_trans_get_buf()
158 ASSERT(!(bip->bli_flags & XFS_BLI_STALE)); in xfs_trans_get_buf()
159 ASSERT(!(bip->bli_format.blf_flags & XFS_BLI_CANCEL)); in xfs_trans_get_buf()
160 ASSERT(!(bip->bli_flags & XFS_BLI_LOGGED)); in xfs_trans_get_buf()
217 ASSERT(bip != NULL); in xfs_trans_getsb()
218 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_getsb()
241 ASSERT(!(bip->bli_flags & XFS_BLI_STALE)); in xfs_trans_getsb()
242 ASSERT(!(bip->bli_format.blf_flags & XFS_BLI_CANCEL)); in xfs_trans_getsb()
243 ASSERT(!(bip->bli_flags & XFS_BLI_LOGGED)); in xfs_trans_getsb()
354 ASSERT(XFS_BUF_VALUSEMA(bp) <= 0); in xfs_trans_read_buf()
355 ASSERT(XFS_BUF_FSPRIVATE2(bp, xfs_trans_t *) == tp); in xfs_trans_read_buf()
356 ASSERT(XFS_BUF_FSPRIVATE(bp, void *) != NULL); in xfs_trans_read_buf()
357 ASSERT((XFS_BUF_ISERROR(bp)) == 0); in xfs_trans_read_buf()
360 ASSERT(!XFS_BUF_ISASYNC(bp)); in xfs_trans_read_buf()
395 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_read_buf()
454 ASSERT(!(bip->bli_flags & XFS_BLI_STALE)); in xfs_trans_read_buf()
455 ASSERT(!(bip->bli_format.blf_flags & XFS_BLI_CANCEL)); in xfs_trans_read_buf()
456 ASSERT(!(bip->bli_flags & XFS_BLI_LOGGED)); in xfs_trans_read_buf()
491 ASSERT((XFS_BUF_BFLAGS(bp) & (XFS_B_STALE|XFS_B_DELWRI)) != in xfs_trans_read_buf()
528 ASSERT(XFS_BUF_FSPRIVATE2(bp, void *) == NULL); in xfs_trans_brelse()
547 ASSERT(XFS_BUF_FSPRIVATE2(bp, xfs_trans_t *) == tp); in xfs_trans_brelse()
549 ASSERT(bip->bli_item.li_type == XFS_LI_BUF); in xfs_trans_brelse()
550 ASSERT(!(bip->bli_flags & XFS_BLI_STALE)); in xfs_trans_brelse()
551 ASSERT(!(bip->bli_format.blf_flags & XFS_BLI_CANCEL)); in xfs_trans_brelse()
552 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_brelse()
559 ASSERT(lidp != NULL); in xfs_trans_brelse()
591 ASSERT(!(bip->bli_flags & XFS_BLI_LOGGED)); in xfs_trans_brelse()
624 ASSERT(atomic_read(&bip->bli_refcount) == 0); in xfs_trans_brelse()
625 ASSERT(!(bip->bli_item.li_flags & XFS_LI_IN_AIL)); in xfs_trans_brelse()
626 ASSERT(!(bip->bli_flags & XFS_BLI_INODE_ALLOC_BUF)); in xfs_trans_brelse()
659 ASSERT(XFS_BUF_ISBUSY(bp)); in xfs_trans_bjoin()
660 ASSERT(XFS_BUF_FSPRIVATE2(bp, void *) == NULL); in xfs_trans_bjoin()
669 ASSERT(!(bip->bli_flags & XFS_BLI_STALE)); in xfs_trans_bjoin()
670 ASSERT(!(bip->bli_format.blf_flags & XFS_BLI_CANCEL)); in xfs_trans_bjoin()
671 ASSERT(!(bip->bli_flags & XFS_BLI_LOGGED)); in xfs_trans_bjoin()
704 ASSERT(XFS_BUF_ISBUSY(bp)); in xfs_trans_bhold()
705 ASSERT(XFS_BUF_FSPRIVATE2(bp, xfs_trans_t *) == tp); in xfs_trans_bhold()
706 ASSERT(XFS_BUF_FSPRIVATE(bp, void *) != NULL); in xfs_trans_bhold()
709 ASSERT(!(bip->bli_flags & XFS_BLI_STALE)); in xfs_trans_bhold()
710 ASSERT(!(bip->bli_format.blf_flags & XFS_BLI_CANCEL)); in xfs_trans_bhold()
711 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_bhold()
734 ASSERT(XFS_BUF_ISBUSY(bp)); in xfs_trans_log_buf()
735 ASSERT(XFS_BUF_FSPRIVATE2(bp, xfs_trans_t *) == tp); in xfs_trans_log_buf()
736 ASSERT(XFS_BUF_FSPRIVATE(bp, void *) != NULL); in xfs_trans_log_buf()
737 ASSERT((first <= last) && (last < XFS_BUF_COUNT(bp))); in xfs_trans_log_buf()
738 ASSERT((XFS_BUF_IODONE_FUNC(bp) == NULL) || in xfs_trans_log_buf()
755 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_log_buf()
768 ASSERT(XFS_BUF_ISSTALE(bp)); in xfs_trans_log_buf()
774 ASSERT(lidp != NULL); in xfs_trans_log_buf()
811 ASSERT(XFS_BUF_ISBUSY(bp)); in xfs_trans_binval()
812 ASSERT(XFS_BUF_FSPRIVATE2(bp, xfs_trans_t *) == tp); in xfs_trans_binval()
813 ASSERT(XFS_BUF_FSPRIVATE(bp, void *) != NULL); in xfs_trans_binval()
817 ASSERT(lidp != NULL); in xfs_trans_binval()
818 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_binval()
825 ASSERT(!(XFS_BUF_ISDELAYWRITE(bp))); in xfs_trans_binval()
826 ASSERT(XFS_BUF_ISSTALE(bp)); in xfs_trans_binval()
827 ASSERT(!(bip->bli_flags & (XFS_BLI_LOGGED | XFS_BLI_DIRTY))); in xfs_trans_binval()
828 ASSERT(!(bip->bli_format.blf_flags & XFS_BLI_INODE_BUF)); in xfs_trans_binval()
829 ASSERT(bip->bli_format.blf_flags & XFS_BLI_CANCEL); in xfs_trans_binval()
830 ASSERT(lidp->lid_flags & XFS_LID_DIRTY); in xfs_trans_binval()
831 ASSERT(tp->t_flags & XFS_TRANS_DIRTY); in xfs_trans_binval()
889 ASSERT(XFS_BUF_ISBUSY(bp)); in xfs_trans_inode_buf()
890 ASSERT(XFS_BUF_FSPRIVATE2(bp, xfs_trans_t *) == tp); in xfs_trans_inode_buf()
891 ASSERT(XFS_BUF_FSPRIVATE(bp, void *) != NULL); in xfs_trans_inode_buf()
894 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_inode_buf()
915 ASSERT(XFS_BUF_ISBUSY(bp)); in xfs_trans_stale_inode_buf()
916 ASSERT(XFS_BUF_FSPRIVATE2(bp, xfs_trans_t *) == tp); in xfs_trans_stale_inode_buf()
917 ASSERT(XFS_BUF_FSPRIVATE(bp, void *) != NULL); in xfs_trans_stale_inode_buf()
920 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_stale_inode_buf()
945 ASSERT(XFS_BUF_ISBUSY(bp)); in xfs_trans_inode_alloc_buf()
946 ASSERT(XFS_BUF_FSPRIVATE2(bp, xfs_trans_t *) == tp); in xfs_trans_inode_alloc_buf()
947 ASSERT(XFS_BUF_FSPRIVATE(bp, void *) != NULL); in xfs_trans_inode_alloc_buf()
950 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_inode_alloc_buf()
975 ASSERT(XFS_BUF_ISBUSY(bp)); in xfs_trans_dquot_buf()
976 ASSERT(XFS_BUF_FSPRIVATE2(bp, xfs_trans_t *) == tp); in xfs_trans_dquot_buf()
977 ASSERT(XFS_BUF_FSPRIVATE(bp, void *) != NULL); in xfs_trans_dquot_buf()
978 ASSERT(type == XFS_BLI_UDQUOT_BUF || in xfs_trans_dquot_buf()
982 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_trans_dquot_buf()
1062 ASSERT(licp == &tp->t_items); in xfs_trans_buf_item_match_all()
1063 ASSERT(licp->lic_next == NULL); in xfs_trans_buf_item_match_all()