Lines Matching refs:magic
149 to->magic = be16_to_cpu(from3->hdr.info.hdr.magic); in xfs_da3_node_hdr_from_disk()
153 ASSERT(to->magic == XFS_DA3_NODE_MAGIC); in xfs_da3_node_hdr_from_disk()
157 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_da3_node_hdr_from_disk()
161 ASSERT(to->magic == XFS_DA_NODE_MAGIC); in xfs_da3_node_hdr_from_disk()
174 ASSERT(from->magic == XFS_DA3_NODE_MAGIC); in xfs_da3_node_hdr_to_disk()
177 to3->hdr.info.hdr.magic = cpu_to_be16(from->magic); in xfs_da3_node_hdr_to_disk()
181 ASSERT(from->magic == XFS_DA_NODE_MAGIC); in xfs_da3_node_hdr_to_disk()
184 to->hdr.info.magic = cpu_to_be16(from->magic); in xfs_da3_node_hdr_to_disk()
203 if (!xfs_verify_magic16(bp, hdr->magic)) in xfs_da3_blkinfo_verify()
290 switch (be16_to_cpu(info->magic)) { in xfs_da3_node_read_verify()
326 switch (be16_to_cpu(info->magic)) { in xfs_da3_node_verify_struct()
359 switch (be16_to_cpu(info->magic)) { in xfs_da3_node_set_type()
461 ichdr.magic = XFS_DA3_NODE_MAGIC; in xfs_da3_node_create()
466 ichdr.magic = XFS_DA_NODE_MAGIC; in xfs_da3_node_create()
508 ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_split()
509 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split()
522 switch (oldblk->magic) { in xfs_da3_split()
589 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split()
685 if (oldroot->hdr.info.magic == cpu_to_be16(XFS_DA_NODE_MAGIC) || in xfs_da3_root_split()
686 oldroot->hdr.info.magic == cpu_to_be16(XFS_DA3_NODE_MAGIC)) { in xfs_da3_root_split()
705 ASSERT(leafhdr.magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_root_split()
706 leafhdr.magic == XFS_DIR3_LEAFN_MAGIC); in xfs_da3_root_split()
725 if (oldroot->hdr.info.magic == cpu_to_be16(XFS_DA3_NODE_MAGIC) || in xfs_da3_root_split()
726 oldroot->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)) { in xfs_da3_root_split()
758 if (oldroot->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_da3_root_split()
759 oldroot->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)) { in xfs_da3_root_split()
821 newblk->magic = XFS_DA_NODE_MAGIC; in xfs_da3_node_split()
1086 ASSERT(state->path.blk[0].magic == XFS_DA_NODE_MAGIC); in xfs_da3_join()
1087 ASSERT(drop_blk->magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_join()
1088 drop_blk->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_join()
1102 switch (drop_blk->magic) { in xfs_da3_join()
1160 __be16 magic = blkinfo->magic; in xfs_da_blkinfo_onlychild_validate() local
1163 ASSERT(magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_da_blkinfo_onlychild_validate()
1164 magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC) || in xfs_da_blkinfo_onlychild_validate()
1165 magic == cpu_to_be16(XFS_ATTR_LEAF_MAGIC) || in xfs_da_blkinfo_onlychild_validate()
1166 magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)); in xfs_da_blkinfo_onlychild_validate()
1168 ASSERT(magic == cpu_to_be16(XFS_DA_NODE_MAGIC) || in xfs_da_blkinfo_onlychild_validate()
1169 magic == cpu_to_be16(XFS_DA3_NODE_MAGIC)); in xfs_da_blkinfo_onlychild_validate()
1197 ASSERT(root_blk->magic == XFS_DA_NODE_MAGIC); in xfs_da3_root_join()
1232 if (oldroothdr.magic == XFS_DA3_NODE_MAGIC) { in xfs_da3_root_join()
1410 switch (blk->magic) { in xfs_da3_fixhashpath()
1602 uint16_t magic; in xfs_da3_node_lookup_int() local
1627 magic = be16_to_cpu(curr->magic); in xfs_da3_node_lookup_int()
1629 if (magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_node_lookup_int()
1630 magic == XFS_ATTR3_LEAF_MAGIC) { in xfs_da3_node_lookup_int()
1631 blk->magic = XFS_ATTR_LEAF_MAGIC; in xfs_da3_node_lookup_int()
1636 if (magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_node_lookup_int()
1637 magic == XFS_DIR3_LEAFN_MAGIC) { in xfs_da3_node_lookup_int()
1638 blk->magic = XFS_DIR2_LEAFN_MAGIC; in xfs_da3_node_lookup_int()
1644 if (magic != XFS_DA_NODE_MAGIC && magic != XFS_DA3_NODE_MAGIC) { in xfs_da3_node_lookup_int()
1649 blk->magic = XFS_DA_NODE_MAGIC; in xfs_da3_node_lookup_int()
1734 if (blk->magic == XFS_DIR2_LEAFN_MAGIC) { in xfs_da3_node_lookup_int()
1737 } else if (blk->magic == XFS_ATTR_LEAF_MAGIC) { in xfs_da3_node_lookup_int()
1753 } else if (blk->magic == XFS_ATTR_LEAF_MAGIC) { in xfs_da3_node_lookup_int()
1825 ASSERT(old_blk->magic == XFS_DA_NODE_MAGIC || in xfs_da3_blk_link()
1826 old_blk->magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_blk_link()
1827 old_blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_da3_blk_link()
1829 switch (old_blk->magic) { in xfs_da3_blk_link()
1859 ASSERT(tmp_info->magic == old_info->magic); in xfs_da3_blk_link()
1880 ASSERT(tmp_info->magic == old_info->magic); in xfs_da3_blk_link()
1916 ASSERT(save_blk->magic == XFS_DA_NODE_MAGIC || in xfs_da3_blk_unlink()
1917 save_blk->magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_blk_unlink()
1918 save_blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_da3_blk_unlink()
1919 ASSERT(save_blk->magic == drop_blk->magic); in xfs_da3_blk_unlink()
1939 ASSERT(tmp_info->magic == save_info->magic); in xfs_da3_blk_unlink()
1956 ASSERT(tmp_info->magic == save_info->magic); in xfs_da3_blk_unlink()
2053 ASSERT(info->magic == cpu_to_be16(XFS_DA_NODE_MAGIC) || in xfs_da3_path_shift()
2054 info->magic == cpu_to_be16(XFS_DA3_NODE_MAGIC) || in xfs_da3_path_shift()
2055 info->magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_da3_path_shift()
2056 info->magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC) || in xfs_da3_path_shift()
2057 info->magic == cpu_to_be16(XFS_ATTR_LEAF_MAGIC) || in xfs_da3_path_shift()
2058 info->magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)); in xfs_da3_path_shift()
2065 switch (be16_to_cpu(info->magic)) { in xfs_da3_path_shift()
2068 blk->magic = XFS_DA_NODE_MAGIC; in xfs_da3_path_shift()
2081 blk->magic = XFS_ATTR_LEAF_MAGIC; in xfs_da3_path_shift()
2088 blk->magic = XFS_DIR2_LEAFN_MAGIC; in xfs_da3_path_shift()
2326 if (dead_info->magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_da3_swap_lastblock()
2327 dead_info->magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)) { in xfs_da3_swap_lastblock()
2357 sib_info->magic != dead_info->magic)) { in xfs_da3_swap_lastblock()
2377 sib_info->magic != dead_info->magic)) { in xfs_da3_swap_lastblock()