Lines Matching full:magic
151 to->magic = be16_to_cpu(from3->hdr.info.hdr.magic); in xfs_da3_node_hdr_from_disk()
155 ASSERT(to->magic == XFS_DA3_NODE_MAGIC); in xfs_da3_node_hdr_from_disk()
159 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_da3_node_hdr_from_disk()
163 ASSERT(to->magic == XFS_DA_NODE_MAGIC); in xfs_da3_node_hdr_from_disk()
176 ASSERT(from->magic == XFS_DA3_NODE_MAGIC); in xfs_da3_node_hdr_to_disk()
179 to3->hdr.info.hdr.magic = cpu_to_be16(from->magic); in xfs_da3_node_hdr_to_disk()
183 ASSERT(from->magic == XFS_DA_NODE_MAGIC); in xfs_da3_node_hdr_to_disk()
186 to->hdr.info.magic = cpu_to_be16(from->magic); in xfs_da3_node_hdr_to_disk()
205 if (!xfs_verify_magic16(bp, hdr->magic)) in xfs_da3_blkinfo_verify()
265 if (hdr3->hdr.magic != cpu_to_be16(XFS_DA3_NODE_MAGIC)) in xfs_da3_node_header_check()
286 switch (hdr->magic) { in xfs_da3_header_check()
337 switch (be16_to_cpu(info->magic)) { in xfs_da3_node_read_verify()
373 switch (be16_to_cpu(info->magic)) { in xfs_da3_node_verify_struct()
408 switch (be16_to_cpu(info->magic)) { in xfs_da3_node_set_type()
532 ichdr.magic = XFS_DA3_NODE_MAGIC; in xfs_da3_node_create()
537 ichdr.magic = XFS_DA_NODE_MAGIC; in xfs_da3_node_create()
579 ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_split()
580 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split()
593 switch (oldblk->magic) { in xfs_da3_split()
661 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split()
678 * Note: the magic numbers and sibling pointers are in the same physical in xfs_da3_split()
759 if (oldroot->hdr.info.magic == cpu_to_be16(XFS_DA_NODE_MAGIC) || in xfs_da3_root_split()
760 oldroot->hdr.info.magic == cpu_to_be16(XFS_DA3_NODE_MAGIC)) { in xfs_da3_root_split()
773 ASSERT(leafhdr.magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_root_split()
774 leafhdr.magic == XFS_DIR3_LEAFN_MAGIC); in xfs_da3_root_split()
812 if (oldroot->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_da3_root_split()
813 oldroot->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)) { in xfs_da3_root_split()
875 newblk->magic = XFS_DA_NODE_MAGIC; in xfs_da3_node_split()
1140 ASSERT(state->path.blk[0].magic == XFS_DA_NODE_MAGIC); in xfs_da3_join()
1141 ASSERT(drop_blk->magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_join()
1142 drop_blk->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_join()
1156 switch (drop_blk->magic) { in xfs_da3_join()
1214 __be16 magic = blkinfo->magic; in xfs_da_blkinfo_onlychild_validate() local
1217 ASSERT(magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_da_blkinfo_onlychild_validate()
1218 magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC) || in xfs_da_blkinfo_onlychild_validate()
1219 magic == cpu_to_be16(XFS_ATTR_LEAF_MAGIC) || in xfs_da_blkinfo_onlychild_validate()
1220 magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)); in xfs_da_blkinfo_onlychild_validate()
1222 ASSERT(magic == cpu_to_be16(XFS_DA_NODE_MAGIC) || in xfs_da_blkinfo_onlychild_validate()
1223 magic == cpu_to_be16(XFS_DA3_NODE_MAGIC)); in xfs_da_blkinfo_onlychild_validate()
1252 ASSERT(root_blk->magic == XFS_DA_NODE_MAGIC); in xfs_da3_root_join()
1473 switch (blk->magic) { in xfs_da3_fixhashpath()
1666 uint16_t magic; in xfs_da3_node_lookup_int() local
1691 magic = be16_to_cpu(curr->magic); in xfs_da3_node_lookup_int()
1693 if (magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_node_lookup_int()
1694 magic == XFS_ATTR3_LEAF_MAGIC) { in xfs_da3_node_lookup_int()
1701 blk->magic = XFS_ATTR_LEAF_MAGIC; in xfs_da3_node_lookup_int()
1706 if (magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_node_lookup_int()
1707 magic == XFS_DIR3_LEAFN_MAGIC) { in xfs_da3_node_lookup_int()
1714 blk->magic = XFS_DIR2_LEAFN_MAGIC; in xfs_da3_node_lookup_int()
1720 if (magic != XFS_DA_NODE_MAGIC && magic != XFS_DA3_NODE_MAGIC) { in xfs_da3_node_lookup_int()
1733 blk->magic = XFS_DA_NODE_MAGIC; in xfs_da3_node_lookup_int()
1824 if (blk->magic == XFS_DIR2_LEAFN_MAGIC) { in xfs_da3_node_lookup_int()
1827 } else if (blk->magic == XFS_ATTR_LEAF_MAGIC) { in xfs_da3_node_lookup_int()
1844 } else if (blk->magic == XFS_ATTR_LEAF_MAGIC) { in xfs_da3_node_lookup_int()
1917 ASSERT(old_blk->magic == XFS_DA_NODE_MAGIC || in xfs_da3_blk_link()
1918 old_blk->magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_blk_link()
1919 old_blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_da3_blk_link()
1921 switch (old_blk->magic) { in xfs_da3_blk_link()
1958 ASSERT(tmp_info->magic == old_info->magic); in xfs_da3_blk_link()
1986 ASSERT(tmp_info->magic == old_info->magic); in xfs_da3_blk_link()
2023 ASSERT(save_blk->magic == XFS_DA_NODE_MAGIC || in xfs_da3_blk_unlink()
2024 save_blk->magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_blk_unlink()
2025 save_blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_da3_blk_unlink()
2026 ASSERT(save_blk->magic == drop_blk->magic); in xfs_da3_blk_unlink()
2053 ASSERT(tmp_info->magic == save_info->magic); in xfs_da3_blk_unlink()
2077 ASSERT(tmp_info->magic == save_info->magic); in xfs_da3_blk_unlink()
2175 ASSERT(info->magic == cpu_to_be16(XFS_DA_NODE_MAGIC) || in xfs_da3_path_shift()
2176 info->magic == cpu_to_be16(XFS_DA3_NODE_MAGIC) || in xfs_da3_path_shift()
2177 info->magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_da3_path_shift()
2178 info->magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC) || in xfs_da3_path_shift()
2179 info->magic == cpu_to_be16(XFS_ATTR_LEAF_MAGIC) || in xfs_da3_path_shift()
2180 info->magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)); in xfs_da3_path_shift()
2184 * Note: we flatten the magic number to a single type so we in xfs_da3_path_shift()
2187 switch (be16_to_cpu(info->magic)) { in xfs_da3_path_shift()
2196 blk->magic = XFS_DA_NODE_MAGIC; in xfs_da3_path_shift()
2215 blk->magic = XFS_ATTR_LEAF_MAGIC; in xfs_da3_path_shift()
2228 blk->magic = XFS_DIR2_LEAFN_MAGIC; in xfs_da3_path_shift()
2469 if (dead_info->magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_da3_swap_lastblock()
2470 dead_info->magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)) { in xfs_da3_swap_lastblock()
2507 sib_info->magic != dead_info->magic)) { in xfs_da3_swap_lastblock()
2535 sib_info->magic != dead_info->magic)) { in xfs_da3_swap_lastblock()