Lines Matching refs:magic

142 	INT_SET(node->hdr.info.magic, ARCH_CONVERT, XFS_DA_NODE_MAGIC);  in xfs_da_node_create()
174 ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || in xfs_da_split()
175 state->path.blk[max].magic == XFS_DIRX_LEAF_MAGIC(state->mp)); in xfs_da_split()
188 switch (oldblk->magic) { in xfs_da_split()
379 if (INT_GET(oldroot->hdr.info.magic, ARCH_CONVERT) == XFS_DA_NODE_MAGIC) { in xfs_da_root_split()
384 ASSERT(INT_GET(oldroot->hdr.info.magic, ARCH_CONVERT) == XFS_DIR2_LEAFN_MAGIC); in xfs_da_root_split()
412 if (INT_GET(oldroot->hdr.info.magic, ARCH_CONVERT) == XFS_DIR2_LEAFN_MAGIC) { in xfs_da_root_split()
444 ASSERT(INT_GET(node->hdr.info.magic, ARCH_CONVERT) == XFS_DA_NODE_MAGIC); in xfs_da_node_split()
468 newblk->magic = XFS_DA_NODE_MAGIC; in xfs_da_node_split()
543 ASSERT(INT_GET(node1->hdr.info.magic, ARCH_CONVERT) == XFS_DA_NODE_MAGIC); in xfs_da_node_rebalance()
544 ASSERT(INT_GET(node2->hdr.info.magic, ARCH_CONVERT) == XFS_DA_NODE_MAGIC); in xfs_da_node_rebalance()
641 ASSERT(INT_GET(node->hdr.info.magic, ARCH_CONVERT) == XFS_DA_NODE_MAGIC); in xfs_da_node_add()
688 ASSERT(state->path.blk[0].magic == XFS_DA_NODE_MAGIC); in xfs_da_join()
689 ASSERT(drop_blk->magic == XFS_ATTR_LEAF_MAGIC || in xfs_da_join()
690 drop_blk->magic == XFS_DIRX_LEAF_MAGIC(state->mp)); in xfs_da_join()
704 switch (drop_blk->magic) { in xfs_da_join()
791 ASSERT(root_blk->magic == XFS_DA_NODE_MAGIC); in xfs_da_root_join()
793 ASSERT(INT_GET(oldroot->hdr.info.magic, ARCH_CONVERT) == XFS_DA_NODE_MAGIC); in xfs_da_root_join()
816 ASSERT(INT_GET(blkinfo->magic, ARCH_CONVERT) == XFS_DIRX_LEAF_MAGIC(state->mp) || in xfs_da_root_join()
817 INT_GET(blkinfo->magic, ARCH_CONVERT) == XFS_ATTR_LEAF_MAGIC); in xfs_da_root_join()
819 ASSERT(INT_GET(blkinfo->magic, ARCH_CONVERT) == XFS_DA_NODE_MAGIC); in xfs_da_root_join()
855 ASSERT(INT_GET(info->magic, ARCH_CONVERT) == XFS_DA_NODE_MAGIC); in xfs_da_node_toosmall()
916 ASSERT(INT_GET(node->hdr.info.magic, ARCH_CONVERT) == XFS_DA_NODE_MAGIC); in xfs_da_node_toosmall()
972 switch (blk->magic) { in xfs_da_fixhashpath()
1000 ASSERT(INT_GET(node->hdr.info.magic, ARCH_CONVERT) == XFS_DA_NODE_MAGIC); in xfs_da_fixhashpath()
1068 ASSERT(INT_GET(drop_node->hdr.info.magic, ARCH_CONVERT) == XFS_DA_NODE_MAGIC); in xfs_da_node_unbalance()
1069 ASSERT(INT_GET(save_node->hdr.info.magic, ARCH_CONVERT) == XFS_DA_NODE_MAGIC); in xfs_da_node_unbalance()
1165 ASSERT(INT_GET(curr->magic, ARCH_CONVERT) == XFS_DA_NODE_MAGIC || in xfs_da_node_lookup_int()
1166 INT_GET(curr->magic, ARCH_CONVERT) == XFS_DIRX_LEAF_MAGIC(state->mp) || in xfs_da_node_lookup_int()
1167 INT_GET(curr->magic, ARCH_CONVERT) == XFS_ATTR_LEAF_MAGIC); in xfs_da_node_lookup_int()
1172 blk->magic = INT_GET(curr->magic, ARCH_CONVERT); in xfs_da_node_lookup_int()
1173 if (INT_GET(curr->magic, ARCH_CONVERT) == XFS_DA_NODE_MAGIC) { in xfs_da_node_lookup_int()
1221 else if (INT_GET(curr->magic, ARCH_CONVERT) == XFS_ATTR_LEAF_MAGIC) { in xfs_da_node_lookup_int()
1226 else if (INT_GET(curr->magic, ARCH_CONVERT) == XFS_DIR_LEAF_MAGIC) { in xfs_da_node_lookup_int()
1230 else if (INT_GET(curr->magic, ARCH_CONVERT) == XFS_DIR2_LEAFN_MAGIC) { in xfs_da_node_lookup_int()
1243 if (blk->magic == XFS_DIR_LEAF_MAGIC) { in xfs_da_node_lookup_int()
1247 } else if (blk->magic == XFS_DIR2_LEAFN_MAGIC) { in xfs_da_node_lookup_int()
1253 else if (blk->magic == XFS_ATTR_LEAF_MAGIC) { in xfs_da_node_lookup_int()
1269 else if (blk->magic == XFS_ATTR_LEAF_MAGIC) { in xfs_da_node_lookup_int()
1304 ASSERT(old_blk->magic == XFS_DA_NODE_MAGIC || in xfs_da_blk_link()
1305 old_blk->magic == XFS_DIRX_LEAF_MAGIC(state->mp) || in xfs_da_blk_link()
1306 old_blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_da_blk_link()
1307 ASSERT(old_blk->magic == INT_GET(old_info->magic, ARCH_CONVERT)); in xfs_da_blk_link()
1308 ASSERT(new_blk->magic == INT_GET(new_info->magic, ARCH_CONVERT)); in xfs_da_blk_link()
1309 ASSERT(old_blk->magic == new_blk->magic); in xfs_da_blk_link()
1311 switch (old_blk->magic) { in xfs_da_blk_link()
1348 ASSERT(INT_GET(tmp_info->magic, ARCH_CONVERT) == INT_GET(old_info->magic, ARCH_CONVERT)); in xfs_da_blk_link()
1369 ASSERT(INT_GET(tmp_info->magic, ARCH_CONVERT) in xfs_da_blk_link()
1370 == INT_GET(old_info->magic, ARCH_CONVERT)); in xfs_da_blk_link()
1395 ASSERT((INT_GET(node1->hdr.info.magic, ARCH_CONVERT) == XFS_DA_NODE_MAGIC) && in xfs_da_node_order()
1396 (INT_GET(node2->hdr.info.magic, ARCH_CONVERT) == XFS_DA_NODE_MAGIC)); in xfs_da_node_order()
1416 ASSERT(INT_GET(node->hdr.info.magic, ARCH_CONVERT) == XFS_DA_NODE_MAGIC); in xfs_da_node_lasthash()
1443 ASSERT(save_blk->magic == XFS_DA_NODE_MAGIC || in xfs_da_blk_unlink()
1444 save_blk->magic == XFS_DIRX_LEAF_MAGIC(state->mp) || in xfs_da_blk_unlink()
1445 save_blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_da_blk_unlink()
1446 ASSERT(save_blk->magic == INT_GET(save_info->magic, ARCH_CONVERT)); in xfs_da_blk_unlink()
1447 ASSERT(drop_blk->magic == INT_GET(drop_info->magic, ARCH_CONVERT)); in xfs_da_blk_unlink()
1448 ASSERT(save_blk->magic == drop_blk->magic); in xfs_da_blk_unlink()
1468 ASSERT(INT_GET(tmp_info->magic, ARCH_CONVERT) == INT_GET(save_info->magic, ARCH_CONVERT)); in xfs_da_blk_unlink()
1485 ASSERT(INT_GET(tmp_info->magic, ARCH_CONVERT) in xfs_da_blk_unlink()
1486 == INT_GET(save_info->magic, ARCH_CONVERT)); in xfs_da_blk_unlink()
1532 ASSERT(INT_GET(node->hdr.info.magic, ARCH_CONVERT) == XFS_DA_NODE_MAGIC); in xfs_da_path_shift()
1571 ASSERT(INT_GET(info->magic, ARCH_CONVERT) == XFS_DA_NODE_MAGIC || in xfs_da_path_shift()
1572 INT_GET(info->magic, ARCH_CONVERT) == XFS_DIRX_LEAF_MAGIC(state->mp) || in xfs_da_path_shift()
1573 INT_GET(info->magic, ARCH_CONVERT) == XFS_ATTR_LEAF_MAGIC); in xfs_da_path_shift()
1574 blk->magic = INT_GET(info->magic, ARCH_CONVERT); in xfs_da_path_shift()
1575 if (INT_GET(info->magic, ARCH_CONVERT) == XFS_DA_NODE_MAGIC) { in xfs_da_path_shift()
1586 switch(blk->magic) { in xfs_da_path_shift()
1604 ASSERT(blk->magic == XFS_ATTR_LEAF_MAGIC || in xfs_da_path_shift()
1605 blk->magic == in xfs_da_path_shift()
1839 if (INT_GET(dead_info->magic, ARCH_CONVERT) == XFS_DIR_LEAF_MAGIC) { in xfs_da_swap_lastblock()
1845 } else if (INT_GET(dead_info->magic, ARCH_CONVERT) == XFS_DIR2_LEAFN_MAGIC) { in xfs_da_swap_lastblock()
1851 ASSERT(INT_GET(dead_info->magic, ARCH_CONVERT) == XFS_DA_NODE_MAGIC); in xfs_da_swap_lastblock()
1866 INT_GET(sib_info->magic, ARCH_CONVERT) != INT_GET(dead_info->magic, ARCH_CONVERT))) { in xfs_da_swap_lastblock()
1888 || INT_GET(sib_info->magic, ARCH_CONVERT) in xfs_da_swap_lastblock()
1889 != INT_GET(dead_info->magic, ARCH_CONVERT))) { in xfs_da_swap_lastblock()
1912 INT_GET(par_node->hdr.info.magic, ARCH_CONVERT) != XFS_DA_NODE_MAGIC || in xfs_da_swap_lastblock()
1963 INT_GET(par_node->hdr.info.magic, ARCH_CONVERT) != XFS_DA_NODE_MAGIC)) { in xfs_da_swap_lastblock()
2253 uint magic, magic1; in xfs_da_do_buf() local
2258 magic = INT_GET(info->magic, ARCH_CONVERT); in xfs_da_do_buf()
2259 magic1 = INT_GET(data->hdr.magic, ARCH_CONVERT); in xfs_da_do_buf()
2261 XFS_TEST_ERROR((magic != XFS_DA_NODE_MAGIC) && in xfs_da_do_buf()
2262 (magic != XFS_DIR_LEAF_MAGIC) && in xfs_da_do_buf()
2263 (magic != XFS_ATTR_LEAF_MAGIC) && in xfs_da_do_buf()
2264 (magic != XFS_DIR2_LEAF1_MAGIC) && in xfs_da_do_buf()
2265 (magic != XFS_DIR2_LEAFN_MAGIC) && in xfs_da_do_buf()
2268 (INT_GET(free->hdr.magic, ARCH_CONVERT) != XFS_DIR2_FREE_MAGIC), in xfs_da_do_buf()