• Home
  • Raw
  • Download

Lines Matching refs:magic

126 	if (!xfs_verify_magic16(bp, hdr->magic))  in xfs_da3_blkinfo_verify()
216 switch (be16_to_cpu(info->magic)) { in xfs_da3_node_read_verify()
252 switch (be16_to_cpu(info->magic)) { in xfs_da3_node_verify_struct()
295 switch (be16_to_cpu(info->magic)) { in xfs_da3_node_read()
357 ichdr.magic = XFS_DA3_NODE_MAGIC; in xfs_da3_node_create()
362 ichdr.magic = XFS_DA_NODE_MAGIC; in xfs_da3_node_create()
401 ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_split()
402 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split()
415 switch (oldblk->magic) { in xfs_da3_split()
482 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split()
576 if (oldroot->hdr.info.magic == cpu_to_be16(XFS_DA_NODE_MAGIC) || in xfs_da3_root_split()
577 oldroot->hdr.info.magic == cpu_to_be16(XFS_DA3_NODE_MAGIC)) { in xfs_da3_root_split()
598 ASSERT(leafhdr.magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_root_split()
599 leafhdr.magic == XFS_DIR3_LEAFN_MAGIC); in xfs_da3_root_split()
617 if (oldroot->hdr.info.magic == cpu_to_be16(XFS_DA3_NODE_MAGIC) || in xfs_da3_root_split()
618 oldroot->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)) { in xfs_da3_root_split()
650 if (oldroot->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_da3_root_split()
651 oldroot->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)) { in xfs_da3_root_split()
713 newblk->magic = XFS_DA_NODE_MAGIC; in xfs_da3_node_split()
979 ASSERT(state->path.blk[0].magic == XFS_DA_NODE_MAGIC); in xfs_da3_join()
980 ASSERT(drop_blk->magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_join()
981 drop_blk->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_join()
995 switch (drop_blk->magic) { in xfs_da3_join()
1053 __be16 magic = blkinfo->magic; in xfs_da_blkinfo_onlychild_validate() local
1056 ASSERT(magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_da_blkinfo_onlychild_validate()
1057 magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC) || in xfs_da_blkinfo_onlychild_validate()
1058 magic == cpu_to_be16(XFS_ATTR_LEAF_MAGIC) || in xfs_da_blkinfo_onlychild_validate()
1059 magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)); in xfs_da_blkinfo_onlychild_validate()
1061 ASSERT(magic == cpu_to_be16(XFS_DA_NODE_MAGIC) || in xfs_da_blkinfo_onlychild_validate()
1062 magic == cpu_to_be16(XFS_DA3_NODE_MAGIC)); in xfs_da_blkinfo_onlychild_validate()
1091 ASSERT(root_blk->magic == XFS_DA_NODE_MAGIC); in xfs_da3_root_join()
1128 if (oldroothdr.magic == XFS_DA3_NODE_MAGIC) { in xfs_da3_root_join()
1310 switch (blk->magic) { in xfs_da3_fixhashpath()
1502 uint16_t magic; in xfs_da3_node_lookup_int() local
1527 magic = be16_to_cpu(curr->magic); in xfs_da3_node_lookup_int()
1529 if (magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_node_lookup_int()
1530 magic == XFS_ATTR3_LEAF_MAGIC) { in xfs_da3_node_lookup_int()
1531 blk->magic = XFS_ATTR_LEAF_MAGIC; in xfs_da3_node_lookup_int()
1536 if (magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_node_lookup_int()
1537 magic == XFS_DIR3_LEAFN_MAGIC) { in xfs_da3_node_lookup_int()
1538 blk->magic = XFS_DIR2_LEAFN_MAGIC; in xfs_da3_node_lookup_int()
1544 if (magic != XFS_DA_NODE_MAGIC && magic != XFS_DA3_NODE_MAGIC) in xfs_da3_node_lookup_int()
1547 blk->magic = XFS_DA_NODE_MAGIC; in xfs_da3_node_lookup_int()
1629 if (blk->magic == XFS_DIR2_LEAFN_MAGIC) { in xfs_da3_node_lookup_int()
1632 } else if (blk->magic == XFS_ATTR_LEAF_MAGIC) { in xfs_da3_node_lookup_int()
1648 } else if (blk->magic == XFS_ATTR_LEAF_MAGIC) { in xfs_da3_node_lookup_int()
1720 ASSERT(old_blk->magic == XFS_DA_NODE_MAGIC || in xfs_da3_blk_link()
1721 old_blk->magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_blk_link()
1722 old_blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_da3_blk_link()
1724 switch (old_blk->magic) { in xfs_da3_blk_link()
1754 ASSERT(tmp_info->magic == old_info->magic); in xfs_da3_blk_link()
1775 ASSERT(tmp_info->magic == old_info->magic); in xfs_da3_blk_link()
1811 ASSERT(save_blk->magic == XFS_DA_NODE_MAGIC || in xfs_da3_blk_unlink()
1812 save_blk->magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_blk_unlink()
1813 save_blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_da3_blk_unlink()
1814 ASSERT(save_blk->magic == drop_blk->magic); in xfs_da3_blk_unlink()
1834 ASSERT(tmp_info->magic == save_info->magic); in xfs_da3_blk_unlink()
1851 ASSERT(tmp_info->magic == save_info->magic); in xfs_da3_blk_unlink()
1949 ASSERT(info->magic == cpu_to_be16(XFS_DA_NODE_MAGIC) || in xfs_da3_path_shift()
1950 info->magic == cpu_to_be16(XFS_DA3_NODE_MAGIC) || in xfs_da3_path_shift()
1951 info->magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_da3_path_shift()
1952 info->magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC) || in xfs_da3_path_shift()
1953 info->magic == cpu_to_be16(XFS_ATTR_LEAF_MAGIC) || in xfs_da3_path_shift()
1954 info->magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)); in xfs_da3_path_shift()
1961 switch (be16_to_cpu(info->magic)) { in xfs_da3_path_shift()
1964 blk->magic = XFS_DA_NODE_MAGIC; in xfs_da3_path_shift()
1977 blk->magic = XFS_ATTR_LEAF_MAGIC; in xfs_da3_path_shift()
1984 blk->magic = XFS_DIR2_LEAFN_MAGIC; in xfs_da3_path_shift()
2237 if (dead_info->magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_da3_swap_lastblock()
2238 dead_info->magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)) { in xfs_da3_swap_lastblock()
2267 sib_info->magic != dead_info->magic)) { in xfs_da3_swap_lastblock()
2289 sib_info->magic != dead_info->magic)) { in xfs_da3_swap_lastblock()