Lines Matching refs:hdr3

112 	struct xfs_attr3_leaf_hdr	*hdr3;  in xfs_attr3_leaf_firstused_from_disk()  local
115 hdr3 = (struct xfs_attr3_leaf_hdr *) from; in xfs_attr3_leaf_firstused_from_disk()
116 to->firstused = be16_to_cpu(hdr3->firstused); in xfs_attr3_leaf_firstused_from_disk()
139 struct xfs_attr3_leaf_hdr *hdr3; in xfs_attr3_leaf_firstused_to_disk() local
157 hdr3 = (struct xfs_attr3_leaf_hdr *) to; in xfs_attr3_leaf_firstused_to_disk()
158 hdr3->firstused = cpu_to_be16(firstused); in xfs_attr3_leaf_firstused_to_disk()
176 struct xfs_attr3_leaf_hdr *hdr3 = (struct xfs_attr3_leaf_hdr *)from; in xfs_attr3_leaf_hdr_from_disk() local
178 to->forw = be32_to_cpu(hdr3->info.hdr.forw); in xfs_attr3_leaf_hdr_from_disk()
179 to->back = be32_to_cpu(hdr3->info.hdr.back); in xfs_attr3_leaf_hdr_from_disk()
180 to->magic = be16_to_cpu(hdr3->info.hdr.magic); in xfs_attr3_leaf_hdr_from_disk()
181 to->count = be16_to_cpu(hdr3->count); in xfs_attr3_leaf_hdr_from_disk()
182 to->usedbytes = be16_to_cpu(hdr3->usedbytes); in xfs_attr3_leaf_hdr_from_disk()
184 to->holes = hdr3->holes; in xfs_attr3_leaf_hdr_from_disk()
187 to->freemap[i].base = be16_to_cpu(hdr3->freemap[i].base); in xfs_attr3_leaf_hdr_from_disk()
188 to->freemap[i].size = be16_to_cpu(hdr3->freemap[i].size); in xfs_attr3_leaf_hdr_from_disk()
218 struct xfs_attr3_leaf_hdr *hdr3 = (struct xfs_attr3_leaf_hdr *)to; in xfs_attr3_leaf_hdr_to_disk() local
220 hdr3->info.hdr.forw = cpu_to_be32(from->forw); in xfs_attr3_leaf_hdr_to_disk()
221 hdr3->info.hdr.back = cpu_to_be32(from->back); in xfs_attr3_leaf_hdr_to_disk()
222 hdr3->info.hdr.magic = cpu_to_be16(from->magic); in xfs_attr3_leaf_hdr_to_disk()
223 hdr3->count = cpu_to_be16(from->count); in xfs_attr3_leaf_hdr_to_disk()
224 hdr3->usedbytes = cpu_to_be16(from->usedbytes); in xfs_attr3_leaf_hdr_to_disk()
226 hdr3->holes = from->holes; in xfs_attr3_leaf_hdr_to_disk()
227 hdr3->pad1 = 0; in xfs_attr3_leaf_hdr_to_disk()
230 hdr3->freemap[i].base = cpu_to_be16(from->freemap[i].base); in xfs_attr3_leaf_hdr_to_disk()
231 hdr3->freemap[i].size = cpu_to_be16(from->freemap[i].size); in xfs_attr3_leaf_hdr_to_disk()
261 struct xfs_da3_node_hdr *hdr3 = bp->b_addr; in xfs_attr3_leaf_verify() local
266 if (!uuid_equal(&hdr3->info.uuid, &mp->m_sb.sb_meta_uuid)) in xfs_attr3_leaf_verify()
268 if (be64_to_cpu(hdr3->info.blkno) != bp->b_bn) in xfs_attr3_leaf_verify()
270 if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr3->info.lsn))) in xfs_attr3_leaf_verify()
291 struct xfs_attr3_leaf_hdr *hdr3 = bp->b_addr; in xfs_attr3_leaf_write_verify() local
303 hdr3->info.lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_attr3_leaf_write_verify()
991 struct xfs_da3_blkinfo *hdr3 = bp2->b_addr; in xfs_attr3_leaf_to_node() local
992 hdr3->blkno = cpu_to_be64(bp2->b_bn); in xfs_attr3_leaf_to_node()
1057 struct xfs_da3_blkinfo *hdr3 = bp->b_addr; in xfs_attr3_leaf_create() local
1061 hdr3->blkno = cpu_to_be64(bp->b_bn); in xfs_attr3_leaf_create()
1062 hdr3->owner = cpu_to_be64(dp->i_ino); in xfs_attr3_leaf_create()
1063 uuid_copy(&hdr3->uuid, &mp->m_sb.sb_meta_uuid); in xfs_attr3_leaf_create()