Lines Matching refs:magic

129 	switch (hdr->magic) {  in __xfs_dir3_data_check()
231 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || in __xfs_dir3_data_check()
232 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) { in __xfs_dir3_data_check()
254 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || in __xfs_dir3_data_check()
255 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) { in __xfs_dir3_data_check()
297 if (!xfs_verify_magic(bp, hdr3->magic)) in xfs_dir3_data_verify()
322 switch (hdr->magic) { in xfs_dir3_data_reada_verify()
382 .magic = { cpu_to_be32(XFS_DIR2_DATA_MAGIC),
391 .magic = { cpu_to_be32(XFS_DIR2_DATA_MAGIC),
561 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || in xfs_dir2_data_freeinsert()
562 hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || in xfs_dir2_data_freeinsert()
563 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC) || in xfs_dir2_data_freeinsert()
564 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)); in xfs_dir2_data_freeinsert()
604 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || in xfs_dir2_data_freeremove()
605 hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || in xfs_dir2_data_freeremove()
606 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC) || in xfs_dir2_data_freeremove()
607 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)); in xfs_dir2_data_freeremove()
649 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || in xfs_dir2_data_freescan()
650 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC) || in xfs_dir2_data_freescan()
651 hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || in xfs_dir2_data_freescan()
652 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)); in xfs_dir2_data_freescan()
724 hdr3->magic = cpu_to_be32(XFS_DIR3_DATA_MAGIC); in xfs_dir3_data_init()
730 hdr->magic = cpu_to_be32(XFS_DIR2_DATA_MAGIC); in xfs_dir3_data_init()
769 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || in xfs_dir2_data_log_entry()
770 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC) || in xfs_dir2_data_log_entry()
771 hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || in xfs_dir2_data_log_entry()
772 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)); in xfs_dir2_data_log_entry()
790 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || in xfs_dir2_data_log_header()
791 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC) || in xfs_dir2_data_log_header()
792 hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || in xfs_dir2_data_log_header()
793 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)); in xfs_dir2_data_log_header()
810 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || in xfs_dir2_data_log_unused()
811 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC) || in xfs_dir2_data_log_unused()
812 hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || in xfs_dir2_data_log_unused()
813 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)); in xfs_dir2_data_log_unused()
1016 if (hdr->magic != cpu_to_be32(XFS_DIR2_DATA_MAGIC) && in xfs_dir2_data_check_free()
1017 hdr->magic != cpu_to_be32(XFS_DIR3_DATA_MAGIC) && in xfs_dir2_data_check_free()
1018 hdr->magic != cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) && in xfs_dir2_data_check_free()
1019 hdr->magic != cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) in xfs_dir2_data_check_free()
1212 switch (hdr->magic) { in xfs_dir3_data_end_offset()