Lines Matching refs:magic
148 if (ichdr.magic != XFS_DA3_NODE_MAGIC) in xfs_da3_node_verify()
156 if (ichdr.magic != XFS_DA_NODE_MAGIC) in xfs_da3_node_verify()
214 switch (be16_to_cpu(info->magic)) { in xfs_da3_node_read_verify()
268 switch (be16_to_cpu(info->magic)) { in xfs_da3_node_read()
327 ichdr.magic = XFS_DA3_NODE_MAGIC; in xfs_da3_node_create()
332 ichdr.magic = XFS_DA_NODE_MAGIC; in xfs_da3_node_create()
372 ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_split()
373 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split()
386 switch (oldblk->magic) { in xfs_da3_split()
544 if (oldroot->hdr.info.magic == cpu_to_be16(XFS_DA_NODE_MAGIC) || in xfs_da3_root_split()
545 oldroot->hdr.info.magic == cpu_to_be16(XFS_DA3_NODE_MAGIC)) { in xfs_da3_root_split()
566 ASSERT(leafhdr.magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_root_split()
567 leafhdr.magic == XFS_DIR3_LEAFN_MAGIC); in xfs_da3_root_split()
585 if (oldroot->hdr.info.magic == cpu_to_be16(XFS_DA3_NODE_MAGIC) || in xfs_da3_root_split()
586 oldroot->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)) { in xfs_da3_root_split()
618 if (oldroot->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_da3_root_split()
619 oldroot->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)) { in xfs_da3_root_split()
681 newblk->magic = XFS_DA_NODE_MAGIC; in xfs_da3_node_split()
947 ASSERT(state->path.blk[0].magic == XFS_DA_NODE_MAGIC); in xfs_da3_join()
948 ASSERT(drop_blk->magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_join()
949 drop_blk->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_join()
963 switch (drop_blk->magic) { in xfs_da3_join()
1021 __be16 magic = blkinfo->magic; in xfs_da_blkinfo_onlychild_validate() local
1024 ASSERT(magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_da_blkinfo_onlychild_validate()
1025 magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC) || in xfs_da_blkinfo_onlychild_validate()
1026 magic == cpu_to_be16(XFS_ATTR_LEAF_MAGIC) || in xfs_da_blkinfo_onlychild_validate()
1027 magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)); in xfs_da_blkinfo_onlychild_validate()
1029 ASSERT(magic == cpu_to_be16(XFS_DA_NODE_MAGIC) || in xfs_da_blkinfo_onlychild_validate()
1030 magic == cpu_to_be16(XFS_DA3_NODE_MAGIC)); in xfs_da_blkinfo_onlychild_validate()
1059 ASSERT(root_blk->magic == XFS_DA_NODE_MAGIC); in xfs_da3_root_join()
1096 if (oldroothdr.magic == XFS_DA3_NODE_MAGIC) { in xfs_da3_root_join()
1278 switch (blk->magic) { in xfs_da3_fixhashpath()
1493 blk->magic = be16_to_cpu(curr->magic); in xfs_da3_node_lookup_int()
1495 if (blk->magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_node_lookup_int()
1496 blk->magic == XFS_ATTR3_LEAF_MAGIC) { in xfs_da3_node_lookup_int()
1497 blk->magic = XFS_ATTR_LEAF_MAGIC; in xfs_da3_node_lookup_int()
1502 if (blk->magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_node_lookup_int()
1503 blk->magic == XFS_DIR3_LEAFN_MAGIC) { in xfs_da3_node_lookup_int()
1504 blk->magic = XFS_DIR2_LEAFN_MAGIC; in xfs_da3_node_lookup_int()
1510 blk->magic = XFS_DA_NODE_MAGIC; in xfs_da3_node_lookup_int()
1574 if (blk->magic == XFS_DIR2_LEAFN_MAGIC) { in xfs_da3_node_lookup_int()
1577 } else if (blk->magic == XFS_ATTR_LEAF_MAGIC) { in xfs_da3_node_lookup_int()
1593 } else if (blk->magic == XFS_ATTR_LEAF_MAGIC) { in xfs_da3_node_lookup_int()
1665 ASSERT(old_blk->magic == XFS_DA_NODE_MAGIC || in xfs_da3_blk_link()
1666 old_blk->magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_blk_link()
1667 old_blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_da3_blk_link()
1669 switch (old_blk->magic) { in xfs_da3_blk_link()
1699 ASSERT(tmp_info->magic == old_info->magic); in xfs_da3_blk_link()
1720 ASSERT(tmp_info->magic == old_info->magic); in xfs_da3_blk_link()
1756 ASSERT(save_blk->magic == XFS_DA_NODE_MAGIC || in xfs_da3_blk_unlink()
1757 save_blk->magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_blk_unlink()
1758 save_blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_da3_blk_unlink()
1759 ASSERT(save_blk->magic == drop_blk->magic); in xfs_da3_blk_unlink()
1779 ASSERT(tmp_info->magic == save_info->magic); in xfs_da3_blk_unlink()
1796 ASSERT(tmp_info->magic == save_info->magic); in xfs_da3_blk_unlink()
1889 ASSERT(info->magic == cpu_to_be16(XFS_DA_NODE_MAGIC) || in xfs_da3_path_shift()
1890 info->magic == cpu_to_be16(XFS_DA3_NODE_MAGIC) || in xfs_da3_path_shift()
1891 info->magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_da3_path_shift()
1892 info->magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC) || in xfs_da3_path_shift()
1893 info->magic == cpu_to_be16(XFS_ATTR_LEAF_MAGIC) || in xfs_da3_path_shift()
1894 info->magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)); in xfs_da3_path_shift()
1901 switch (be16_to_cpu(info->magic)) { in xfs_da3_path_shift()
1904 blk->magic = XFS_DA_NODE_MAGIC; in xfs_da3_path_shift()
1917 blk->magic = XFS_ATTR_LEAF_MAGIC; in xfs_da3_path_shift()
1924 blk->magic = XFS_DIR2_LEAFN_MAGIC; in xfs_da3_path_shift()
2180 if (dead_info->magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_da3_swap_lastblock()
2181 dead_info->magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)) { in xfs_da3_swap_lastblock()
2210 sib_info->magic != dead_info->magic)) { in xfs_da3_swap_lastblock()
2232 sib_info->magic != dead_info->magic)) { in xfs_da3_swap_lastblock()