Lines Matching full:magic

45 		to->magic = be16_to_cpu(from3->hdr.info.hdr.magic);  in xfs_dir2_leaf_hdr_from_disk()
50 ASSERT(to->magic == XFS_DIR3_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_from_disk()
51 to->magic == XFS_DIR3_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_from_disk()
55 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_dir2_leaf_hdr_from_disk()
60 ASSERT(to->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_from_disk()
61 to->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_from_disk()
74 ASSERT(from->magic == XFS_DIR3_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_to_disk()
75 from->magic == XFS_DIR3_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_to_disk()
79 to3->hdr.info.hdr.magic = cpu_to_be16(from->magic); in xfs_dir2_leaf_hdr_to_disk()
83 ASSERT(from->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_to_disk()
84 from->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_to_disk()
88 to->hdr.info.magic = cpu_to_be16(from->magic); in xfs_dir2_leaf_hdr_to_disk()
109 if (leafhdr.magic == XFS_DIR3_LEAF1_MAGIC) { in xfs_dir3_leaf1_check()
113 } else if (leafhdr.magic != XFS_DIR2_LEAF1_MAGIC) in xfs_dir3_leaf1_check()
149 bool isleaf1 = (hdr->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir3_leaf_check_int()
150 hdr->magic == XFS_DIR3_LEAF1_MAGIC); in xfs_dir3_leaf_check_int()
190 * We verify the magic numbers before decoding the leaf header so that on debug
192 * to incorrect magic numbers.
302 * Initialize a new leaf block, leaf1 or leafn magic accepted.
321 leaf3->info.hdr.magic = (type == XFS_DIR2_LEAF1_MAGIC) in xfs_dir3_leaf_init()
329 leaf->hdr.info.magic = cpu_to_be16(type); in xfs_dir3_leaf_init()
354 uint16_t magic) in xfs_dir3_leaf_get_buf() argument
362 ASSERT(magic == XFS_DIR2_LEAF1_MAGIC || magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir3_leaf_get_buf()
371 xfs_dir3_leaf_init(mp, tp, bp, dp->i_ino, magic); in xfs_dir3_leaf_get_buf()
373 if (magic == XFS_DIR2_LEAF1_MAGIC) in xfs_dir3_leaf_get_buf()
464 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC)) in xfs_dir2_block_to_leaf()
465 hdr->magic = cpu_to_be32(XFS_DIR2_DATA_MAGIC); in xfs_dir2_block_to_leaf()
467 hdr->magic = cpu_to_be32(XFS_DIR3_DATA_MAGIC); in xfs_dir2_block_to_leaf()
1074 ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || in xfs_dir3_leaf_log_bests()
1075 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC)); in xfs_dir3_leaf_log_bests()
1100 ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || in xfs_dir3_leaf_log_ents()
1101 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) || in xfs_dir3_leaf_log_ents()
1102 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_dir3_leaf_log_ents()
1103 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)); in xfs_dir3_leaf_log_ents()
1122 ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || in xfs_dir3_leaf_log_header()
1123 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) || in xfs_dir3_leaf_log_header()
1124 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_dir3_leaf_log_header()
1125 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)); in xfs_dir3_leaf_log_header()
1143 ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || in xfs_dir3_leaf_log_tail()
1144 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) || in xfs_dir3_leaf_log_tail()
1145 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_dir3_leaf_log_tail()
1146 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)); in xfs_dir3_leaf_log_tail()
1627 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || in xfs_dir2_leaf_trim_data()
1628 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC)); in xfs_dir2_leaf_trim_data()
1663 if (hdr->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir3_leaf_size()
1664 hdr->magic == XFS_DIR2_LEAFN_MAGIC) in xfs_dir3_leaf_size()
1747 ASSERT(leafhdr.magic == XFS_DIR2_LEAFN_MAGIC || in xfs_dir2_node_to_leaf()
1748 leafhdr.magic == XFS_DIR3_LEAFN_MAGIC); in xfs_dir2_node_to_leaf()
1777 leafhdr.magic = (leafhdr.magic == XFS_DIR2_LEAFN_MAGIC) in xfs_dir2_node_to_leaf()