Lines Matching refs:hdr3
54 struct xfs_dir3_blk_hdr *hdr3 = bp->b_addr; in xfs_dir3_block_verify() local
57 if (hdr3->magic != cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) in xfs_dir3_block_verify()
59 if (!uuid_equal(&hdr3->uuid, &mp->m_sb.sb_meta_uuid)) in xfs_dir3_block_verify()
61 if (be64_to_cpu(hdr3->blkno) != bp->b_bn) in xfs_dir3_block_verify()
63 if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr3->lsn))) in xfs_dir3_block_verify()
66 if (hdr3->magic != cpu_to_be32(XFS_DIR2_BLOCK_MAGIC)) in xfs_dir3_block_verify()
95 struct xfs_dir3_blk_hdr *hdr3 = bp->b_addr; in xfs_dir3_block_write_verify() local
108 hdr3->lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_dir3_block_write_verify()
143 struct xfs_dir3_blk_hdr *hdr3 = bp->b_addr; in xfs_dir3_block_init() local
149 memset(hdr3, 0, sizeof(*hdr3)); in xfs_dir3_block_init()
150 hdr3->magic = cpu_to_be32(XFS_DIR3_BLOCK_MAGIC); in xfs_dir3_block_init()
151 hdr3->blkno = cpu_to_be64(bp->b_bn); in xfs_dir3_block_init()
152 hdr3->owner = cpu_to_be64(dp->i_ino); in xfs_dir3_block_init()
153 uuid_copy(&hdr3->uuid, &mp->m_sb.sb_meta_uuid); in xfs_dir3_block_init()
157 hdr3->magic = cpu_to_be32(XFS_DIR2_BLOCK_MAGIC); in xfs_dir3_block_init()