Lines Matching refs:ASSERT

331 	ASSERT(level <= XFS_DA_NODE_MAXDEPTH);  in xfs_da3_node_create()
387 ASSERT((max >= 0) && (max < XFS_DA_NODE_MAXDEPTH)); in xfs_da3_split()
388 ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_split()
468 ASSERT(state->extravalid == 0 || in xfs_da3_split()
474 ASSERT(state->path.active == 0); in xfs_da3_split()
495 ASSERT(be32_to_cpu(node->hdr.info.forw) == addblk->blkno); in xfs_da3_split()
504 ASSERT(be32_to_cpu(node->hdr.info.back) == addblk->blkno); in xfs_da3_split()
580 ASSERT(leafhdr.magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_root_split()
634 ASSERT(blk1->blkno >= args->geo->leafblk && in xfs_da3_root_split()
636 ASSERT(blk2->blkno >= args->geo->leafblk && in xfs_da3_root_split()
909 ASSERT(oldblk->index >= 0 && oldblk->index <= nodehdr.count); in xfs_da3_node_add()
910 ASSERT(newblk->blkno != 0); in xfs_da3_node_add()
912 ASSERT(newblk->blkno >= state->args->geo->leafblk && in xfs_da3_node_add()
961 ASSERT(state->path.blk[0].magic == XFS_DA_NODE_MAGIC); in xfs_da3_join()
962 ASSERT(drop_blk->magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_join()
1038 ASSERT(magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_da_blkinfo_onlychild_validate()
1043 ASSERT(magic == cpu_to_be16(XFS_DA_NODE_MAGIC) || in xfs_da_blkinfo_onlychild_validate()
1046 ASSERT(!blkinfo->forw); in xfs_da_blkinfo_onlychild_validate()
1047 ASSERT(!blkinfo->back); in xfs_da_blkinfo_onlychild_validate()
1073 ASSERT(root_blk->magic == XFS_DA_NODE_MAGIC); in xfs_da3_root_join()
1078 ASSERT(oldroothdr.forw == 0); in xfs_da3_root_join()
1079 ASSERT(oldroothdr.back == 0); in xfs_da3_root_join()
1093 ASSERT(child != 0); in xfs_da3_root_join()
1346 ASSERT(drop_blk->index < nodehdr.count); in xfs_da3_node_remove()
1347 ASSERT(drop_blk->index >= 0); in xfs_da3_node_remove()
1568 ASSERT((probe >= 0) && (probe < max)); in xfs_da3_node_lookup_int()
1569 ASSERT((span <= 4) || in xfs_da3_node_lookup_int()
1619 ASSERT(0); in xfs_da3_node_lookup_int()
1699 ASSERT(args != NULL); in xfs_da3_blk_link()
1702 ASSERT(old_blk->magic == XFS_DA_NODE_MAGIC || in xfs_da3_blk_link()
1734 ASSERT(bp != NULL); in xfs_da3_blk_link()
1736 ASSERT(tmp_info->magic == old_info->magic); in xfs_da3_blk_link()
1737 ASSERT(be32_to_cpu(tmp_info->forw) == old_blk->blkno); in xfs_da3_blk_link()
1755 ASSERT(bp != NULL); in xfs_da3_blk_link()
1757 ASSERT(tmp_info->magic == old_info->magic); in xfs_da3_blk_link()
1758 ASSERT(be32_to_cpu(tmp_info->back) == old_blk->blkno); in xfs_da3_blk_link()
1790 ASSERT(args != NULL); in xfs_da3_blk_unlink()
1793 ASSERT(save_blk->magic == XFS_DA_NODE_MAGIC || in xfs_da3_blk_unlink()
1796 ASSERT(save_blk->magic == drop_blk->magic); in xfs_da3_blk_unlink()
1797 ASSERT((be32_to_cpu(save_info->forw) == drop_blk->blkno) || in xfs_da3_blk_unlink()
1799 ASSERT((be32_to_cpu(drop_info->forw) == save_blk->blkno) || in xfs_da3_blk_unlink()
1814 ASSERT(bp != NULL); in xfs_da3_blk_unlink()
1816 ASSERT(tmp_info->magic == save_info->magic); in xfs_da3_blk_unlink()
1817 ASSERT(be32_to_cpu(tmp_info->forw) == drop_blk->blkno); in xfs_da3_blk_unlink()
1831 ASSERT(bp != NULL); in xfs_da3_blk_unlink()
1833 ASSERT(tmp_info->magic == save_info->magic); in xfs_da3_blk_unlink()
1834 ASSERT(be32_to_cpu(tmp_info->back) == drop_blk->blkno); in xfs_da3_blk_unlink()
1881 ASSERT(args != NULL); in xfs_da3_path_shift()
1882 ASSERT(path != NULL); in xfs_da3_path_shift()
1883 ASSERT((path->active > 0) && (path->active < XFS_DA_NODE_MAXDEPTH)); in xfs_da3_path_shift()
1902 ASSERT(args->op_flags & XFS_DA_OP_OKNOENT); in xfs_da3_path_shift()
1931 ASSERT(info->magic == cpu_to_be16(XFS_DA_NODE_MAGIC) || in xfs_da3_path_shift()
1960 ASSERT(level == path->active-1); in xfs_da3_path_shift()
1967 ASSERT(level == path->active-1); in xfs_da3_path_shift()
1973 ASSERT(0); in xfs_da3_path_shift()
2071 ASSERT(nmap <= 1); in xfs_da_grow_inode_int()
2192 ASSERT(w == XFS_DATA_FORK); in xfs_da3_swap_lastblock()
2460 ASSERT(*nmaps == 1); in xfs_buf_map_from_irec()
2461 ASSERT(nirecs >= 1); in xfs_buf_map_from_irec()
2474 ASSERT(irecs[i].br_startblock != DELAYSTARTBLOCK && in xfs_buf_map_from_irec()
2506 ASSERT(map && *map); in xfs_dabuf_map()
2507 ASSERT(*nmaps == 1); in xfs_dabuf_map()