Searched refs:hdr3 (Results 1 – 9 of 9) sorted by relevance
/linux-4.19.296/fs/xfs/libxfs/ |
D | xfs_da_format.c | 470 struct xfs_dir3_leaf_hdr *hdr3 = (struct xfs_dir3_leaf_hdr *)from; in xfs_dir3_leaf_hdr_from_disk() local 472 to->forw = be32_to_cpu(hdr3->info.hdr.forw); in xfs_dir3_leaf_hdr_from_disk() 473 to->back = be32_to_cpu(hdr3->info.hdr.back); in xfs_dir3_leaf_hdr_from_disk() 474 to->magic = be16_to_cpu(hdr3->info.hdr.magic); in xfs_dir3_leaf_hdr_from_disk() 475 to->count = be16_to_cpu(hdr3->count); in xfs_dir3_leaf_hdr_from_disk() 476 to->stale = be16_to_cpu(hdr3->stale); in xfs_dir3_leaf_hdr_from_disk() 487 struct xfs_dir3_leaf_hdr *hdr3 = (struct xfs_dir3_leaf_hdr *)to; in xfs_dir3_leaf_hdr_to_disk() local 492 hdr3->info.hdr.forw = cpu_to_be32(from->forw); in xfs_dir3_leaf_hdr_to_disk() 493 hdr3->info.hdr.back = cpu_to_be32(from->back); in xfs_dir3_leaf_hdr_to_disk() 494 hdr3->info.hdr.magic = cpu_to_be16(from->magic); in xfs_dir3_leaf_hdr_to_disk() [all …]
|
D | xfs_dir2_block.c | 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() [all …]
|
D | xfs_dir2_data.c | 253 struct xfs_dir3_blk_hdr *hdr3 = bp->b_addr; in xfs_dir3_data_verify() local 256 if (hdr3->magic != cpu_to_be32(XFS_DIR3_DATA_MAGIC)) in xfs_dir3_data_verify() 258 if (!uuid_equal(&hdr3->uuid, &mp->m_sb.sb_meta_uuid)) in xfs_dir3_data_verify() 260 if (be64_to_cpu(hdr3->blkno) != bp->b_bn) in xfs_dir3_data_verify() 262 if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr3->lsn))) in xfs_dir3_data_verify() 265 if (hdr3->magic != cpu_to_be32(XFS_DIR2_DATA_MAGIC)) in xfs_dir3_data_verify() 322 struct xfs_dir3_blk_hdr *hdr3 = bp->b_addr; in xfs_dir3_data_write_verify() local 335 hdr3->lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_dir3_data_write_verify() 669 struct xfs_dir3_blk_hdr *hdr3 = bp->b_addr; in xfs_dir3_data_init() local 671 memset(hdr3, 0, sizeof(*hdr3)); in xfs_dir3_data_init() [all …]
|
D | xfs_attr_leaf.c | 100 struct xfs_attr3_leaf_hdr *hdr3; in xfs_attr3_leaf_firstused_from_disk() local 103 hdr3 = (struct xfs_attr3_leaf_hdr *) from; in xfs_attr3_leaf_firstused_from_disk() 104 to->firstused = be16_to_cpu(hdr3->firstused); in xfs_attr3_leaf_firstused_from_disk() 127 struct xfs_attr3_leaf_hdr *hdr3; in xfs_attr3_leaf_firstused_to_disk() local 145 hdr3 = (struct xfs_attr3_leaf_hdr *) to; in xfs_attr3_leaf_firstused_to_disk() 146 hdr3->firstused = cpu_to_be16(firstused); in xfs_attr3_leaf_firstused_to_disk() 164 struct xfs_attr3_leaf_hdr *hdr3 = (struct xfs_attr3_leaf_hdr *)from; in xfs_attr3_leaf_hdr_from_disk() local 166 to->forw = be32_to_cpu(hdr3->info.hdr.forw); in xfs_attr3_leaf_hdr_from_disk() 167 to->back = be32_to_cpu(hdr3->info.hdr.back); in xfs_attr3_leaf_hdr_from_disk() 168 to->magic = be16_to_cpu(hdr3->info.hdr.magic); in xfs_attr3_leaf_hdr_from_disk() [all …]
|
D | xfs_dir2_node.c | 91 struct xfs_dir3_blk_hdr *hdr3 = bp->b_addr; in xfs_dir3_free_verify() local 93 if (hdr3->magic != cpu_to_be32(XFS_DIR3_FREE_MAGIC)) in xfs_dir3_free_verify() 95 if (!uuid_equal(&hdr3->uuid, &mp->m_sb.sb_meta_uuid)) in xfs_dir3_free_verify() 97 if (be64_to_cpu(hdr3->blkno) != bp->b_bn) in xfs_dir3_free_verify() 99 if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr3->lsn))) in xfs_dir3_free_verify() 134 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() 175 struct xfs_dir3_free_hdr *hdr3 = bp->b_addr; in xfs_dir3_free_header_check() local 177 if (be32_to_cpu(hdr3->firstdb) != firstdb) in xfs_dir3_free_header_check() 179 if (be32_to_cpu(hdr3->nvalid) > maxbests) in xfs_dir3_free_header_check() [all …]
|
D | xfs_da_btree.c | 133 struct xfs_da3_node_hdr *hdr3 = bp->b_addr; in xfs_da3_node_verify() local 138 if (!uuid_equal(&hdr3->info.uuid, &mp->m_sb.sb_meta_uuid)) in xfs_da3_node_verify() 140 if (be64_to_cpu(hdr3->info.blkno) != bp->b_bn) in xfs_da3_node_verify() 142 if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr3->info.lsn))) in xfs_da3_node_verify() 174 struct xfs_da3_node_hdr *hdr3 = bp->b_addr; in xfs_da3_node_write_verify() local 187 hdr3->info.lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_da3_node_write_verify() 341 struct xfs_da3_node_hdr *hdr3 = bp->b_addr; in xfs_da3_node_create() local 343 memset(hdr3, 0, sizeof(struct xfs_da3_node_hdr)); in xfs_da3_node_create() 345 hdr3->info.blkno = cpu_to_be64(bp->b_bn); in xfs_da3_node_create() 346 hdr3->info.owner = cpu_to_be64(args->dp->i_ino); in xfs_da3_node_create() [all …]
|
D | xfs_dir2_leaf.c | 201 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()
|
/linux-4.19.296/fs/xfs/scrub/ |
D | dabtree.c | 339 struct xfs_da3_blkinfo *hdr3; in xchk_da_btree_block() local 385 hdr3 = blk->bp->b_addr; in xchk_da_btree_block() 386 blk->magic = be16_to_cpu(hdr3->hdr.magic); in xchk_da_btree_block() 390 if (xfs_sb_version_hascrc(&ds->sc->mp->m_sb) && hdr3->hdr.pad) in xchk_da_btree_block() 395 owner = be64_to_cpu(hdr3->owner); in xchk_da_btree_block() 401 error = xchk_da_btree_block_check_siblings(ds, level, &hdr3->hdr); in xchk_da_btree_block()
|
D | dir.c | 515 struct xfs_dir3_leaf_hdr *hdr3 = bp->b_addr; in xchk_directory_leaf1_bestfree() local 517 if (hdr3->pad != cpu_to_be32(0)) in xchk_directory_leaf1_bestfree() 598 struct xfs_dir3_free_hdr *hdr3 = bp->b_addr; in xchk_directory_free_bestfree() local 600 if (hdr3->pad != cpu_to_be32(0)) in xchk_directory_free_bestfree()
|