Lines Matching refs:ASSERT

100 			ASSERT(ip->i_df.if_u1.if_extents != NULL);  in xfs_inode_item_size()
108 ASSERT(ip->i_df.if_ext_max == in xfs_inode_item_size()
115 ASSERT(ip->i_df.if_broot != NULL); in xfs_inode_item_size()
118 ASSERT(!(iip->ili_format.ilf_fields & in xfs_inode_item_size()
122 ASSERT(iip->ili_root_size == in xfs_inode_item_size()
124 ASSERT(memcmp(iip->ili_orig_root, in xfs_inode_item_size()
128 ASSERT(ip->i_df.if_broot_bytes == 0); in xfs_inode_item_size()
141 ASSERT(ip->i_df.if_u1.if_data != NULL); in xfs_inode_item_size()
142 ASSERT(ip->i_d.di_size > 0); in xfs_inode_item_size()
162 ASSERT(0); in xfs_inode_item_size()
187 ASSERT(ip->i_afp->if_u1.if_extents != NULL); in xfs_inode_item_size()
199 ASSERT(ip->i_afp->if_broot != NULL); in xfs_inode_item_size()
211 ASSERT(ip->i_afp->if_u1.if_data != NULL); in xfs_inode_item_size()
219 ASSERT(0); in xfs_inode_item_size()
308 ASSERT(ip->i_d.di_version == XFS_DINODE_VERSION_1 || in xfs_inode_item_format()
315 ASSERT(ip->i_d.di_nlink <= XFS_MAXLINK_1); in xfs_inode_item_format()
331 ASSERT(!(iip->ili_format.ilf_fields & in xfs_inode_item_format()
335 ASSERT(ip->i_df.if_bytes > 0); in xfs_inode_item_format()
336 ASSERT(ip->i_df.if_u1.if_extents != NULL); in xfs_inode_item_format()
337 ASSERT(ip->i_d.di_nextents > 0); in xfs_inode_item_format()
338 ASSERT(iip->ili_extents_buf == NULL); in xfs_inode_item_format()
341 ASSERT(nrecs > 0); in xfs_inode_item_format()
371 ASSERT(vecp->i_len <= ip->i_df.if_bytes); in xfs_inode_item_format()
379 ASSERT(!(iip->ili_format.ilf_fields & in xfs_inode_item_format()
383 ASSERT(ip->i_df.if_broot_bytes > 0); in xfs_inode_item_format()
384 ASSERT(ip->i_df.if_broot != NULL); in xfs_inode_item_format()
394 ASSERT(!(iip->ili_format.ilf_fields & in xfs_inode_item_format()
398 ASSERT(ip->i_df.if_bytes > 0); in xfs_inode_item_format()
399 ASSERT(ip->i_df.if_u1.if_data != NULL); in xfs_inode_item_format()
400 ASSERT(ip->i_d.di_size > 0); in xfs_inode_item_format()
409 ASSERT((ip->i_df.if_real_bytes == 0) || in xfs_inode_item_format()
419 ASSERT(!(iip->ili_format.ilf_fields & in xfs_inode_item_format()
429 ASSERT(!(iip->ili_format.ilf_fields & in xfs_inode_item_format()
439 ASSERT(0); in xfs_inode_item_format()
449 ASSERT(nvecs == iip->ili_item.li_desc->lid_size); in xfs_inode_item_format()
451 ASSERT(!(iip->ili_format.ilf_fields & in xfs_inode_item_format()
458 ASSERT(!(iip->ili_format.ilf_fields & in xfs_inode_item_format()
461 ASSERT(ip->i_afp->if_bytes > 0); in xfs_inode_item_format()
462 ASSERT(ip->i_afp->if_u1.if_extents != NULL); in xfs_inode_item_format()
463 ASSERT(ip->i_d.di_anextents > 0); in xfs_inode_item_format()
468 ASSERT(nrecs > 0); in xfs_inode_item_format()
469 ASSERT(nrecs == ip->i_d.di_anextents); in xfs_inode_item_format()
478 ASSERT(iip->ili_aextents_buf == NULL); in xfs_inode_item_format()
496 ASSERT(!(iip->ili_format.ilf_fields & in xfs_inode_item_format()
499 ASSERT(ip->i_afp->if_broot_bytes > 0); in xfs_inode_item_format()
500 ASSERT(ip->i_afp->if_broot != NULL); in xfs_inode_item_format()
510 ASSERT(!(iip->ili_format.ilf_fields & in xfs_inode_item_format()
513 ASSERT(ip->i_afp->if_bytes > 0); in xfs_inode_item_format()
514 ASSERT(ip->i_afp->if_u1.if_data != NULL); in xfs_inode_item_format()
523 ASSERT((ip->i_afp->if_real_bytes == 0) || in xfs_inode_item_format()
533 ASSERT(0); in xfs_inode_item_format()
537 ASSERT(nvecs == iip->ili_item.li_desc->lid_size); in xfs_inode_item_format()
552 ASSERT(ismrlocked(&(iip->ili_inode->i_lock), MR_UPDATE)); in xfs_inode_item_pin()
644 ASSERT(iip->ili_format.ilf_fields != 0); in xfs_inode_item_trylock()
645 ASSERT(iip->ili_logged == 0); in xfs_inode_item_trylock()
646 ASSERT(iip->ili_item.li_flags & XFS_LI_IN_AIL); in xfs_inode_item_trylock()
667 ASSERT(iip != NULL); in xfs_inode_item_unlock()
668 ASSERT(iip->ili_inode->i_itemp != NULL); in xfs_inode_item_unlock()
669 ASSERT(ismrlocked(&(iip->ili_inode->i_lock), MR_UPDATE)); in xfs_inode_item_unlock()
670 ASSERT((!(iip->ili_inode->i_itemp->ili_flags & in xfs_inode_item_unlock()
673 ASSERT((!(iip->ili_inode->i_itemp->ili_flags & in xfs_inode_item_unlock()
687 ASSERT(ip->i_d.di_format == XFS_DINODE_FMT_EXTENTS); in xfs_inode_item_unlock()
688 ASSERT(ip->i_d.di_nextents > 0); in xfs_inode_item_unlock()
689 ASSERT(iip->ili_format.ilf_fields & XFS_ILOG_DEXT); in xfs_inode_item_unlock()
690 ASSERT(ip->i_df.if_bytes > 0); in xfs_inode_item_unlock()
695 ASSERT(ip->i_d.di_aformat == XFS_DINODE_FMT_EXTENTS); in xfs_inode_item_unlock()
696 ASSERT(ip->i_d.di_anextents > 0); in xfs_inode_item_unlock()
697 ASSERT(iip->ili_format.ilf_fields & XFS_ILOG_AEXT); in xfs_inode_item_unlock()
698 ASSERT(ip->i_afp->if_bytes > 0); in xfs_inode_item_unlock()
789 ASSERT(ismrlocked(&(ip->i_lock), MR_ACCESS)); in xfs_inode_item_pushbuf()
795 ASSERT(iip->ili_pushbuf_flag != 0); in xfs_inode_item_pushbuf()
796 ASSERT(iip->ili_push_owner == get_thread_id()); in xfs_inode_item_pushbuf()
872 ASSERT(ismrlocked(&(ip->i_lock), MR_ACCESS)); in xfs_inode_item_push()
873 ASSERT(valusema(&(ip->i_flock)) <= 0); in xfs_inode_item_push()
883 ASSERT(XFS_FORCED_SHUTDOWN(ip->i_mount) || in xfs_inode_item_push()
943 ASSERT(ip->i_itemp == NULL); in xfs_inode_item_init()