Lines Matching refs:hdr3
51 struct xfs_dir3_blk_hdr *hdr3 = bp->b_addr; in xfs_dir3_block_verify() local
53 if (!xfs_verify_magic(bp, hdr3->magic)) in xfs_dir3_block_verify()
57 if (!uuid_equal(&hdr3->uuid, &mp->m_sb.sb_meta_uuid)) in xfs_dir3_block_verify()
59 if (be64_to_cpu(hdr3->blkno) != xfs_buf_daddr(bp)) in xfs_dir3_block_verify()
61 if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr3->lsn))) in xfs_dir3_block_verify()
90 struct xfs_dir3_blk_hdr *hdr3 = bp->b_addr; in xfs_dir3_block_write_verify() local
103 hdr3->lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_dir3_block_write_verify()
125 struct xfs_dir3_blk_hdr *hdr3 = bp->b_addr; in xfs_dir3_block_header_check() local
127 if (be64_to_cpu(hdr3->owner) != dp->i_ino) in xfs_dir3_block_header_check()
169 struct xfs_dir3_blk_hdr *hdr3 = bp->b_addr; in xfs_dir3_block_init() local
175 memset(hdr3, 0, sizeof(*hdr3)); in xfs_dir3_block_init()
176 hdr3->magic = cpu_to_be32(XFS_DIR3_BLOCK_MAGIC); in xfs_dir3_block_init()
177 hdr3->blkno = cpu_to_be64(xfs_buf_daddr(bp)); in xfs_dir3_block_init()
178 hdr3->owner = cpu_to_be64(dp->i_ino); in xfs_dir3_block_init()
179 uuid_copy(&hdr3->uuid, &mp->m_sb.sb_meta_uuid); in xfs_dir3_block_init()
183 hdr3->magic = cpu_to_be32(XFS_DIR2_BLOCK_MAGIC); in xfs_dir3_block_init()