Lines Matching full:magic
46 to->magic = be16_to_cpu(from3->hdr.info.hdr.magic); in xfs_dir2_leaf_hdr_from_disk()
51 ASSERT(to->magic == XFS_DIR3_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_from_disk()
52 to->magic == XFS_DIR3_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_from_disk()
56 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_dir2_leaf_hdr_from_disk()
61 ASSERT(to->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_from_disk()
62 to->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_from_disk()
75 ASSERT(from->magic == XFS_DIR3_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_to_disk()
76 from->magic == XFS_DIR3_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_to_disk()
80 to3->hdr.info.hdr.magic = cpu_to_be16(from->magic); in xfs_dir2_leaf_hdr_to_disk()
84 ASSERT(from->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_to_disk()
85 from->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_to_disk()
89 to->hdr.info.magic = cpu_to_be16(from->magic); in xfs_dir2_leaf_hdr_to_disk()
110 if (leafhdr.magic == XFS_DIR3_LEAF1_MAGIC) { in xfs_dir3_leaf1_check()
114 } else if (leafhdr.magic != XFS_DIR2_LEAF1_MAGIC) in xfs_dir3_leaf1_check()
150 bool isleaf1 = (hdr->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir3_leaf_check_int()
151 hdr->magic == XFS_DIR3_LEAF1_MAGIC); in xfs_dir3_leaf_check_int()
191 * We verify the magic numbers before decoding the leaf header so that on debug
193 * to incorrect magic numbers.
221 if (hdr3->hdr.info.hdr.magic != in xfs_dir3_leaf_header_check()
223 hdr3->hdr.info.hdr.magic != in xfs_dir3_leaf_header_check()
354 * Initialize a new leaf block, leaf1 or leafn magic accepted.
373 leaf3->info.hdr.magic = (type == XFS_DIR2_LEAF1_MAGIC) in xfs_dir3_leaf_init()
381 leaf->hdr.info.magic = cpu_to_be16(type); in xfs_dir3_leaf_init()
406 uint16_t magic) in xfs_dir3_leaf_get_buf() argument
413 ASSERT(magic == XFS_DIR2_LEAF1_MAGIC || magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir3_leaf_get_buf()
422 xfs_dir3_leaf_init(args, bp, magic); in xfs_dir3_leaf_get_buf()
424 if (magic == XFS_DIR2_LEAF1_MAGIC) in xfs_dir3_leaf_get_buf()
515 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC)) in xfs_dir2_block_to_leaf()
516 hdr->magic = cpu_to_be32(XFS_DIR2_DATA_MAGIC); in xfs_dir2_block_to_leaf()
518 hdr->magic = cpu_to_be32(XFS_DIR3_DATA_MAGIC); in xfs_dir2_block_to_leaf()
1126 ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || in xfs_dir3_leaf_log_bests()
1127 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC)); in xfs_dir3_leaf_log_bests()
1152 ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || in xfs_dir3_leaf_log_ents()
1153 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) || in xfs_dir3_leaf_log_ents()
1154 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_dir3_leaf_log_ents()
1155 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)); in xfs_dir3_leaf_log_ents()
1174 ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || in xfs_dir3_leaf_log_header()
1175 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) || in xfs_dir3_leaf_log_header()
1176 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_dir3_leaf_log_header()
1177 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)); in xfs_dir3_leaf_log_header()
1195 ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || in xfs_dir3_leaf_log_tail()
1196 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) || in xfs_dir3_leaf_log_tail()
1197 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_dir3_leaf_log_tail()
1198 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)); in xfs_dir3_leaf_log_tail()
1683 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || in xfs_dir2_leaf_trim_data()
1684 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC)); in xfs_dir2_leaf_trim_data()
1719 if (hdr->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir3_leaf_size()
1720 hdr->magic == XFS_DIR2_LEAFN_MAGIC) in xfs_dir3_leaf_size()
1803 ASSERT(leafhdr.magic == XFS_DIR2_LEAFN_MAGIC || in xfs_dir2_node_to_leaf()
1804 leafhdr.magic == XFS_DIR3_LEAFN_MAGIC); in xfs_dir2_node_to_leaf()
1834 leafhdr.magic = (leafhdr.magic == XFS_DIR2_LEAFN_MAGIC) in xfs_dir2_node_to_leaf()