Lines Matching refs:ASSERT
177 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_ilock()
179 ASSERT((lock_flags & (XFS_MMAPLOCK_SHARED | XFS_MMAPLOCK_EXCL)) != in xfs_ilock()
181 ASSERT((lock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) != in xfs_ilock()
183 ASSERT((lock_flags & ~(XFS_LOCK_MASK | XFS_LOCK_SUBCLASS_MASK)) == 0); in xfs_ilock()
228 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_ilock_nowait()
230 ASSERT((lock_flags & (XFS_MMAPLOCK_SHARED | XFS_MMAPLOCK_EXCL)) != in xfs_ilock_nowait()
232 ASSERT((lock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) != in xfs_ilock_nowait()
234 ASSERT((lock_flags & ~(XFS_LOCK_MASK | XFS_LOCK_SUBCLASS_MASK)) == 0); in xfs_ilock_nowait()
297 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_iunlock()
299 ASSERT((lock_flags & (XFS_MMAPLOCK_SHARED | XFS_MMAPLOCK_EXCL)) != in xfs_iunlock()
301 ASSERT((lock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) != in xfs_iunlock()
303 ASSERT((lock_flags & ~(XFS_LOCK_MASK | XFS_LOCK_SUBCLASS_MASK)) == 0); in xfs_iunlock()
304 ASSERT(lock_flags != 0); in xfs_iunlock()
333 ASSERT(lock_flags & (XFS_IOLOCK_EXCL|XFS_MMAPLOCK_EXCL|XFS_ILOCK_EXCL)); in xfs_ilock_demote()
334 ASSERT((lock_flags & in xfs_ilock_demote()
372 ASSERT(0); in xfs_isilocked()
405 ASSERT(!(lock_mode & (XFS_ILOCK_PARENT | XFS_ILOCK_RTBITMAP | in xfs_lock_inumorder()
407 ASSERT(xfs_lockdep_subclass_ok(subclass)); in xfs_lock_inumorder()
410 ASSERT(subclass <= XFS_IOLOCK_MAX_SUBCLASS); in xfs_lock_inumorder()
415 ASSERT(subclass <= XFS_MMAPLOCK_MAX_SUBCLASS); in xfs_lock_inumorder()
420 ASSERT(subclass <= XFS_ILOCK_MAX_SUBCLASS); in xfs_lock_inumorder()
458 ASSERT(ips && inodes >= 2 && inodes <= 5); in xfs_lock_inodes()
459 ASSERT(lock_mode & (XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL | in xfs_lock_inodes()
461 ASSERT(!(lock_mode & (XFS_IOLOCK_SHARED | XFS_MMAPLOCK_SHARED | in xfs_lock_inodes()
463 ASSERT(!(lock_mode & XFS_MMAPLOCK_EXCL) || in xfs_lock_inodes()
465 ASSERT(!(lock_mode & XFS_ILOCK_EXCL) || in xfs_lock_inodes()
469 ASSERT(!(lock_mode & (XFS_MMAPLOCK_EXCL | XFS_ILOCK_EXCL))); in xfs_lock_inodes()
471 ASSERT(!(lock_mode & XFS_ILOCK_EXCL)); in xfs_lock_inodes()
477 ASSERT(ips[i]); in xfs_lock_inodes()
506 ASSERT(i != 0); in xfs_lock_inodes()
556 ASSERT(hweight32(ip0_mode) == 1); in xfs_lock_two_inodes()
557 ASSERT(hweight32(ip1_mode) == 1); in xfs_lock_two_inodes()
558 ASSERT(!(ip0_mode & (XFS_IOLOCK_SHARED|XFS_IOLOCK_EXCL))); in xfs_lock_two_inodes()
559 ASSERT(!(ip1_mode & (XFS_IOLOCK_SHARED|XFS_IOLOCK_EXCL))); in xfs_lock_two_inodes()
560 ASSERT(!(ip0_mode & (XFS_MMAPLOCK_SHARED|XFS_MMAPLOCK_EXCL)) || in xfs_lock_two_inodes()
562 ASSERT(!(ip1_mode & (XFS_MMAPLOCK_SHARED|XFS_MMAPLOCK_EXCL)) || in xfs_lock_two_inodes()
564 ASSERT(!(ip1_mode & (XFS_MMAPLOCK_SHARED|XFS_MMAPLOCK_EXCL)) || in xfs_lock_two_inodes()
566 ASSERT(!(ip0_mode & (XFS_MMAPLOCK_SHARED|XFS_MMAPLOCK_EXCL)) || in xfs_lock_two_inodes()
569 ASSERT(ip0->i_ino != ip1->i_ino); in xfs_lock_two_inodes()
779 ASSERT(*ialloc_context == NULL); in xfs_ialloc()
802 ASSERT(ip != NULL); in xfs_ialloc()
838 ASSERT(ip->i_d.di_nblocks == 0); in xfs_ialloc()
934 ASSERT(0); in xfs_ialloc()
986 ASSERT(tp->t_flags & XFS_TRANS_PERM_LOG_RES); in xfs_dir_ialloc()
1085 ASSERT(!ialloc_context && ip); in xfs_dir_ialloc()
1126 ASSERT(ip->i_d.di_version > 1); in xfs_bumplink()
1227 ASSERT(error != -ENOSPC); in xfs_create()
1397 ASSERT(!S_ISDIR(VFS_I(sip)->i_mode)); in xfs_link()
1532 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); in xfs_itruncate_extents_flags()
1533 ASSERT(!atomic_read(&VFS_I(ip)->i_count) || in xfs_itruncate_extents_flags()
1535 ASSERT(new_size <= XFS_ISIZE(ip)); in xfs_itruncate_extents_flags()
1536 ASSERT(tp->t_flags & XFS_TRANS_PERM_LOG_RES); in xfs_itruncate_extents_flags()
1537 ASSERT(ip->i_itemp != NULL); in xfs_itruncate_extents_flags()
1538 ASSERT(ip->i_itemp->ili_lock_flags == 0); in xfs_itruncate_extents_flags()
1539 ASSERT(!XFS_NOT_DQATTACHED(mp, ip)); in xfs_itruncate_extents_flags()
1559 ASSERT(first_unmap_block < last_block); in xfs_itruncate_extents_flags()
1562 ASSERT(tp->t_firstblock == NULLFSBLOCK); in xfs_itruncate_extents_flags()
1699 ASSERT(XFS_FORCED_SHUTDOWN(mp)); in xfs_inactive_truncate()
1717 ASSERT(ip->i_d.di_nextents == 0); in xfs_inactive_truncate()
1770 ASSERT(XFS_FORCED_SHUTDOWN(mp)); in xfs_inactive_ifree()
1799 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); in xfs_inactive_ifree()
1853 ASSERT(ip->i_df.if_broot_bytes == 0); in xfs_inactive()
1858 ASSERT(!xfs_iflags_test(ip, XFS_IRECOVERY)); in xfs_inactive()
1911 ASSERT(!ip->i_afp); in xfs_inactive()
1912 ASSERT(ip->i_d.di_anextents == 0); in xfs_inactive()
1913 ASSERT(ip->i_d.di_forkoff == 0); in xfs_inactive()
1950 ASSERT(VFS_I(ip)->i_nlink == 0); in xfs_iunlink()
1951 ASSERT(VFS_I(ip)->i_mode != 0); in xfs_iunlink()
1967 ASSERT(agino != 0); in xfs_iunlink()
1969 ASSERT(agi->agi_unlinked[bucket_index]); in xfs_iunlink()
1970 ASSERT(be32_to_cpu(agi->agi_unlinked[bucket_index]) != agino); in xfs_iunlink()
1984 ASSERT(dip->di_next_unlinked == cpu_to_be32(NULLAGINO)); in xfs_iunlink()
2001 ASSERT(agino != 0); in xfs_iunlink()
2077 ASSERT(next_agino != 0); in xfs_iunlink_remove()
2096 ASSERT(next_agino != 0); in xfs_iunlink_remove()
2097 ASSERT(next_agino != agino); in xfs_iunlink_remove()
2157 ASSERT(next_agino != 0); in xfs_iunlink_remove()
2158 ASSERT(next_agino != agino); in xfs_iunlink_remove()
2178 ASSERT(next_agino != 0); in xfs_iunlink_remove()
2231 ASSERT(ioffset % inodes_per_cluster == 0); in xfs_ifree_cluster()
2274 ASSERT(iip->ili_logged == 1); in xfs_ifree_cluster()
2360 ASSERT(ip != free_ip); in xfs_ifree_cluster()
2424 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); in xfs_ifree()
2425 ASSERT(VFS_I(ip)->i_nlink == 0); in xfs_ifree()
2426 ASSERT(ip->i_d.di_nextents == 0); in xfs_ifree()
2427 ASSERT(ip->i_d.di_anextents == 0); in xfs_ifree()
2428 ASSERT(ip->i_d.di_size == 0 || !S_ISREG(VFS_I(ip)->i_mode)); in xfs_ifree()
2429 ASSERT(ip->i_d.di_nblocks == 0); in xfs_ifree()
2478 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL|XFS_ILOCK_SHARED)); in xfs_iunpin()
2581 ASSERT(error != -ENOSPC); in xfs_remove()
2594 ASSERT(VFS_I(ip)->i_nlink >= 2); in xfs_remove()
2630 ASSERT(error != -ENOENT); in xfs_remove()
2673 ASSERT(*num_inodes == __XFS_SORT_INODES); in xfs_sort_for_rename()
3009 ASSERT(VFS_I(wip)->i_nlink == 0); in xfs_rename()
3087 ASSERT(error != -EEXIST); in xfs_rename()
3296 ASSERT(bp->b_iodone); in xfs_iflush_cluster()
3330 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL|XFS_ILOCK_SHARED)); in xfs_iflush()
3331 ASSERT(xfs_isiflocked(ip)); in xfs_iflush()
3332 ASSERT(ip->i_d.di_format != XFS_DINODE_FMT_BTREE || in xfs_iflush()
3462 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL|XFS_ILOCK_SHARED)); in xfs_iflush_int()
3463 ASSERT(xfs_isiflocked(ip)); in xfs_iflush_int()
3464 ASSERT(ip->i_d.di_format != XFS_DINODE_FMT_BTREE || in xfs_iflush_int()
3466 ASSERT(iip != NULL && iip->ili_fields != 0); in xfs_iflush_int()
3467 ASSERT(ip->i_d.di_version > 1); in xfs_iflush_int()
3595 ASSERT(!list_empty(&bp->b_li_list)); in xfs_iflush_int()
3596 ASSERT(bp->b_iodone != NULL); in xfs_iflush_int()