Lines Matching refs:ASSERT
171 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_ilock()
173 ASSERT((lock_flags & (XFS_MMAPLOCK_SHARED | XFS_MMAPLOCK_EXCL)) != in xfs_ilock()
175 ASSERT((lock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) != in xfs_ilock()
177 ASSERT((lock_flags & ~(XFS_LOCK_MASK | XFS_LOCK_SUBCLASS_MASK)) == 0); in xfs_ilock()
222 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_ilock_nowait()
224 ASSERT((lock_flags & (XFS_MMAPLOCK_SHARED | XFS_MMAPLOCK_EXCL)) != in xfs_ilock_nowait()
226 ASSERT((lock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) != in xfs_ilock_nowait()
228 ASSERT((lock_flags & ~(XFS_LOCK_MASK | XFS_LOCK_SUBCLASS_MASK)) == 0); in xfs_ilock_nowait()
291 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_iunlock()
293 ASSERT((lock_flags & (XFS_MMAPLOCK_SHARED | XFS_MMAPLOCK_EXCL)) != in xfs_iunlock()
295 ASSERT((lock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) != in xfs_iunlock()
297 ASSERT((lock_flags & ~(XFS_LOCK_MASK | XFS_LOCK_SUBCLASS_MASK)) == 0); in xfs_iunlock()
298 ASSERT(lock_flags != 0); in xfs_iunlock()
327 ASSERT(lock_flags & (XFS_IOLOCK_EXCL|XFS_MMAPLOCK_EXCL|XFS_ILOCK_EXCL)); in xfs_ilock_demote()
328 ASSERT((lock_flags & in xfs_ilock_demote()
366 ASSERT(0); in xfs_isilocked()
399 ASSERT(!(lock_mode & (XFS_ILOCK_PARENT | XFS_ILOCK_RTBITMAP | in xfs_lock_inumorder()
401 ASSERT(xfs_lockdep_subclass_ok(subclass)); in xfs_lock_inumorder()
404 ASSERT(subclass <= XFS_IOLOCK_MAX_SUBCLASS); in xfs_lock_inumorder()
409 ASSERT(subclass <= XFS_MMAPLOCK_MAX_SUBCLASS); in xfs_lock_inumorder()
414 ASSERT(subclass <= XFS_ILOCK_MAX_SUBCLASS); in xfs_lock_inumorder()
452 ASSERT(ips && inodes >= 2 && inodes <= 5); in xfs_lock_inodes()
453 ASSERT(lock_mode & (XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL | in xfs_lock_inodes()
455 ASSERT(!(lock_mode & (XFS_IOLOCK_SHARED | XFS_MMAPLOCK_SHARED | in xfs_lock_inodes()
457 ASSERT(!(lock_mode & XFS_MMAPLOCK_EXCL) || in xfs_lock_inodes()
459 ASSERT(!(lock_mode & XFS_ILOCK_EXCL) || in xfs_lock_inodes()
463 ASSERT(!(lock_mode & (XFS_MMAPLOCK_EXCL | XFS_ILOCK_EXCL))); in xfs_lock_inodes()
465 ASSERT(!(lock_mode & XFS_ILOCK_EXCL)); in xfs_lock_inodes()
471 ASSERT(ips[i]); in xfs_lock_inodes()
500 ASSERT(i != 0); in xfs_lock_inodes()
550 ASSERT(hweight32(ip0_mode) == 1); in xfs_lock_two_inodes()
551 ASSERT(hweight32(ip1_mode) == 1); in xfs_lock_two_inodes()
552 ASSERT(!(ip0_mode & (XFS_IOLOCK_SHARED|XFS_IOLOCK_EXCL))); in xfs_lock_two_inodes()
553 ASSERT(!(ip1_mode & (XFS_IOLOCK_SHARED|XFS_IOLOCK_EXCL))); in xfs_lock_two_inodes()
554 ASSERT(!(ip0_mode & (XFS_MMAPLOCK_SHARED|XFS_MMAPLOCK_EXCL)) || in xfs_lock_two_inodes()
556 ASSERT(!(ip1_mode & (XFS_MMAPLOCK_SHARED|XFS_MMAPLOCK_EXCL)) || in xfs_lock_two_inodes()
558 ASSERT(!(ip1_mode & (XFS_MMAPLOCK_SHARED|XFS_MMAPLOCK_EXCL)) || in xfs_lock_two_inodes()
560 ASSERT(!(ip0_mode & (XFS_MMAPLOCK_SHARED|XFS_MMAPLOCK_EXCL)) || in xfs_lock_two_inodes()
563 ASSERT(ip0->i_ino != ip1->i_ino); in xfs_lock_two_inodes()
773 ASSERT(*ialloc_context == NULL); in xfs_ialloc()
796 ASSERT(ip != NULL); in xfs_ialloc()
832 ASSERT(ip->i_d.di_nblocks == 0); in xfs_ialloc()
928 ASSERT(0); in xfs_ialloc()
980 ASSERT(tp->t_flags & XFS_TRANS_PERM_LOG_RES); in xfs_dir_ialloc()
1079 ASSERT(!ialloc_context && ip); in xfs_dir_ialloc()
1120 ASSERT(ip->i_d.di_version > 1); in xfs_bumplink()
1220 ASSERT(error != -ENOSPC); in xfs_create()
1388 ASSERT(!S_ISDIR(VFS_I(sip)->i_mode)); in xfs_link()
1521 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); in xfs_itruncate_extents_flags()
1522 ASSERT(!atomic_read(&VFS_I(ip)->i_count) || in xfs_itruncate_extents_flags()
1524 ASSERT(new_size <= XFS_ISIZE(ip)); in xfs_itruncate_extents_flags()
1525 ASSERT(tp->t_flags & XFS_TRANS_PERM_LOG_RES); in xfs_itruncate_extents_flags()
1526 ASSERT(ip->i_itemp != NULL); in xfs_itruncate_extents_flags()
1527 ASSERT(ip->i_itemp->ili_lock_flags == 0); in xfs_itruncate_extents_flags()
1528 ASSERT(!XFS_NOT_DQATTACHED(mp, ip)); in xfs_itruncate_extents_flags()
1548 ASSERT(first_unmap_block < last_block); in xfs_itruncate_extents_flags()
1551 ASSERT(tp->t_firstblock == NULLFSBLOCK); in xfs_itruncate_extents_flags()
1688 ASSERT(XFS_FORCED_SHUTDOWN(mp)); in xfs_inactive_truncate()
1706 ASSERT(ip->i_d.di_nextents == 0); in xfs_inactive_truncate()
1759 ASSERT(XFS_FORCED_SHUTDOWN(mp)); in xfs_inactive_ifree()
1823 ASSERT(ip->i_df.if_broot_bytes == 0); in xfs_inactive()
1828 ASSERT(!xfs_iflags_test(ip, XFS_IRECOVERY)); in xfs_inactive()
1881 ASSERT(!ip->i_afp); in xfs_inactive()
1882 ASSERT(ip->i_d.di_anextents == 0); in xfs_inactive()
1883 ASSERT(ip->i_d.di_forkoff == 0); in xfs_inactive()
2103 ASSERT(freed_anything == false || XFS_FORCED_SHUTDOWN(pag->pag_mount)); in xfs_iunlink_destroy()
2122 ASSERT(xfs_verify_agino_or_null(tp->t_mountp, agno, new_agino)); in xfs_iunlink_update_bucket()
2157 ASSERT(xfs_verify_agino_or_null(mp, agno, next_agino)); in xfs_iunlink_update_dinode()
2188 ASSERT(xfs_verify_agino_or_null(mp, agno, next_agino)); in xfs_iunlink_update_inode()
2243 ASSERT(VFS_I(ip)->i_nlink == 0); in xfs_iunlink()
2244 ASSERT(VFS_I(ip)->i_mode != 0); in xfs_iunlink()
2275 ASSERT(old_agino == NULLAGINO); in xfs_iunlink()
2349 ASSERT(head_agino != target_agino); in xfs_iunlink_map_prev()
2549 ASSERT(ioffset % igeo->inodes_per_cluster == 0); in xfs_ifree_cluster()
2592 ASSERT(iip->ili_logged == 1); in xfs_ifree_cluster()
2678 ASSERT(ip != free_ip); in xfs_ifree_cluster()
2742 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); in xfs_ifree()
2743 ASSERT(VFS_I(ip)->i_nlink == 0); in xfs_ifree()
2744 ASSERT(ip->i_d.di_nextents == 0); in xfs_ifree()
2745 ASSERT(ip->i_d.di_anextents == 0); in xfs_ifree()
2746 ASSERT(ip->i_d.di_size == 0 || !S_ISREG(VFS_I(ip)->i_mode)); in xfs_ifree()
2747 ASSERT(ip->i_d.di_nblocks == 0); in xfs_ifree()
2796 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL|XFS_ILOCK_SHARED)); in xfs_iunpin()
2899 ASSERT(error != -ENOSPC); in xfs_remove()
2912 ASSERT(VFS_I(ip)->i_nlink >= 2); in xfs_remove()
2948 ASSERT(error != -ENOENT); in xfs_remove()
2991 ASSERT(*num_inodes == __XFS_SORT_INODES); in xfs_sort_for_rename()
3216 ASSERT(!(flags & (RENAME_NOREPLACE | RENAME_EXCHANGE))); in xfs_rename()
3324 ASSERT(VFS_I(wip)->i_nlink == 0); in xfs_rename()
3400 ASSERT(error != -EEXIST); in xfs_rename()
3607 ASSERT(bp->b_iodone); in xfs_iflush_cluster()
3644 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL|XFS_ILOCK_SHARED)); in xfs_iflush()
3645 ASSERT(xfs_isiflocked(ip)); in xfs_iflush()
3646 ASSERT(ip->i_d.di_format != XFS_DINODE_FMT_BTREE || in xfs_iflush()
3776 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL|XFS_ILOCK_SHARED)); in xfs_iflush_int()
3777 ASSERT(xfs_isiflocked(ip)); in xfs_iflush_int()
3778 ASSERT(ip->i_d.di_format != XFS_DINODE_FMT_BTREE || in xfs_iflush_int()
3780 ASSERT(iip != NULL && iip->ili_fields != 0); in xfs_iflush_int()
3781 ASSERT(ip->i_d.di_version > 1); in xfs_iflush_int()
3909 ASSERT(!list_empty(&bp->b_li_list)); in xfs_iflush_int()
3910 ASSERT(bp->b_iodone != NULL); in xfs_iflush_int()