Home
last modified time | relevance | path

Searched refs:hdr3 (Results 1 – 7 of 7) sorted by relevance

/fs/xfs/libxfs/
Dxfs_da_format.c487 struct xfs_dir3_leaf_hdr *hdr3 = (struct xfs_dir3_leaf_hdr *)from; in xfs_dir3_leaf_hdr_from_disk() local
489 to->forw = be32_to_cpu(hdr3->info.hdr.forw); in xfs_dir3_leaf_hdr_from_disk()
490 to->back = be32_to_cpu(hdr3->info.hdr.back); in xfs_dir3_leaf_hdr_from_disk()
491 to->magic = be16_to_cpu(hdr3->info.hdr.magic); in xfs_dir3_leaf_hdr_from_disk()
492 to->count = be16_to_cpu(hdr3->count); in xfs_dir3_leaf_hdr_from_disk()
493 to->stale = be16_to_cpu(hdr3->stale); in xfs_dir3_leaf_hdr_from_disk()
504 struct xfs_dir3_leaf_hdr *hdr3 = (struct xfs_dir3_leaf_hdr *)to; in xfs_dir3_leaf_hdr_to_disk() local
509 hdr3->info.hdr.forw = cpu_to_be32(from->forw); in xfs_dir3_leaf_hdr_to_disk()
510 hdr3->info.hdr.back = cpu_to_be32(from->back); in xfs_dir3_leaf_hdr_to_disk()
511 hdr3->info.hdr.magic = cpu_to_be16(from->magic); in xfs_dir3_leaf_hdr_to_disk()
[all …]
Dxfs_dir2_data.c219 struct xfs_dir3_blk_hdr *hdr3 = bp->b_addr; in xfs_dir3_data_verify() local
222 if (hdr3->magic != cpu_to_be32(XFS_DIR3_DATA_MAGIC)) in xfs_dir3_data_verify()
224 if (!uuid_equal(&hdr3->uuid, &mp->m_sb.sb_meta_uuid)) in xfs_dir3_data_verify()
226 if (be64_to_cpu(hdr3->blkno) != bp->b_bn) in xfs_dir3_data_verify()
228 if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr3->lsn))) in xfs_dir3_data_verify()
231 if (hdr3->magic != cpu_to_be32(XFS_DIR2_DATA_MAGIC)) in xfs_dir3_data_verify()
290 struct xfs_dir3_blk_hdr *hdr3 = bp->b_addr; in xfs_dir3_data_write_verify() local
302 hdr3->lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_dir3_data_write_verify()
607 struct xfs_dir3_blk_hdr *hdr3 = bp->b_addr; in xfs_dir3_data_init() local
609 memset(hdr3, 0, sizeof(*hdr3)); in xfs_dir3_data_init()
[all …]
Dxfs_attr_leaf.c112 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()
[all …]
Dxfs_dir2_block.c66 struct xfs_dir3_blk_hdr *hdr3 = bp->b_addr; in xfs_dir3_block_verify() local
69 if (hdr3->magic != cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) in xfs_dir3_block_verify()
71 if (!uuid_equal(&hdr3->uuid, &mp->m_sb.sb_meta_uuid)) in xfs_dir3_block_verify()
73 if (be64_to_cpu(hdr3->blkno) != bp->b_bn) in xfs_dir3_block_verify()
75 if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr3->lsn))) in xfs_dir3_block_verify()
78 if (hdr3->magic != cpu_to_be32(XFS_DIR2_BLOCK_MAGIC)) in xfs_dir3_block_verify()
108 struct xfs_dir3_blk_hdr *hdr3 = bp->b_addr; in xfs_dir3_block_write_verify() local
120 hdr3->lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_dir3_block_write_verify()
154 struct xfs_dir3_blk_hdr *hdr3 = bp->b_addr; in xfs_dir3_block_init() local
160 memset(hdr3, 0, sizeof(*hdr3)); in xfs_dir3_block_init()
[all …]
Dxfs_dir2_node.c93 struct xfs_dir3_blk_hdr *hdr3 = bp->b_addr; in xfs_dir3_free_verify() local
95 if (hdr3->magic != cpu_to_be32(XFS_DIR3_FREE_MAGIC)) in xfs_dir3_free_verify()
97 if (!uuid_equal(&hdr3->uuid, &mp->m_sb.sb_meta_uuid)) in xfs_dir3_free_verify()
99 if (be64_to_cpu(hdr3->blkno) != bp->b_bn) in xfs_dir3_free_verify()
101 if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr3->lsn))) in xfs_dir3_free_verify()
135 struct xfs_dir3_blk_hdr *hdr3 = bp->b_addr; in xfs_dir3_free_write_verify() local
147 hdr3->lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_dir3_free_write_verify()
227 struct xfs_dir3_free_hdr *hdr3 = bp->b_addr; in xfs_dir3_free_get_buf() local
231 hdr3->hdr.blkno = cpu_to_be64(bp->b_bn); in xfs_dir3_free_get_buf()
232 hdr3->hdr.owner = cpu_to_be64(dp->i_ino); in xfs_dir3_free_get_buf()
[all …]
Dxfs_da_btree.c145 struct xfs_da3_node_hdr *hdr3 = bp->b_addr; in xfs_da3_node_verify() local
150 if (!uuid_equal(&hdr3->info.uuid, &mp->m_sb.sb_meta_uuid)) in xfs_da3_node_verify()
152 if (be64_to_cpu(hdr3->info.blkno) != bp->b_bn) in xfs_da3_node_verify()
154 if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr3->info.lsn))) in xfs_da3_node_verify()
186 struct xfs_da3_node_hdr *hdr3 = bp->b_addr; in xfs_da3_node_write_verify() local
198 hdr3->info.lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_da3_node_write_verify()
327 struct xfs_da3_node_hdr *hdr3 = bp->b_addr; in xfs_da3_node_create() local
329 memset(hdr3, 0, sizeof(struct xfs_da3_node_hdr)); in xfs_da3_node_create()
331 hdr3->info.blkno = cpu_to_be64(bp->b_bn); in xfs_da3_node_create()
332 hdr3->info.owner = cpu_to_be64(args->dp->i_ino); in xfs_da3_node_create()
[all …]
Dxfs_dir2_leaf.c202 struct xfs_dir3_leaf_hdr *hdr3 = bp->b_addr; in __write_verify() local
214 hdr3->info.lsn = cpu_to_be64(bip->bli_item.li_lsn); in __write_verify()