Searched refs:leafhdr (Results 1 – 10 of 10) sorted by relevance
/Linux-v4.19/fs/xfs/libxfs/ |
D | xfs_dir2_leaf.c | 47 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir3_leaf1_check() local 49 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir3_leaf1_check() 51 if (leafhdr.magic == XFS_DIR3_LEAF1_MAGIC) { in xfs_dir3_leaf1_check() 55 } else if (leafhdr.magic != XFS_DIR2_LEAF1_MAGIC) in xfs_dir3_leaf1_check() 58 return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); in xfs_dir3_leaf1_check() 92 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir3_leaf_check_int() local 102 ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir3_leaf_check_int() 103 hdr = &leafhdr; in xfs_dir3_leaf_check_int() 411 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_block_to_leaf() local 445 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_block_to_leaf() [all …]
|
D | xfs_dir2_node.c | 50 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir3_leafn_check() local 52 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir3_leafn_check() 54 if (leafhdr.magic == XFS_DIR3_LEAFN_MAGIC) { in xfs_dir3_leafn_check() 58 } else if (leafhdr.magic != XFS_DIR2_LEAFN_MAGIC) in xfs_dir3_leafn_check() 61 return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); in xfs_dir3_leafn_check() 440 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_leafn_add() local 447 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leafn_add() 464 if (leafhdr.count == dp->d_ops->leaf_max_ents(args->geo)) { in xfs_dir2_leafn_add() 465 if (!leafhdr.stale) in xfs_dir2_leafn_add() 467 compact = leafhdr.stale > 1; in xfs_dir2_leafn_add() [all …]
|
D | xfs_dir2_priv.h | 58 struct xfs_dir3_icleaf_hdr *leafhdr, struct xfs_buf *bp); 59 extern void xfs_dir3_leaf_compact_x1(struct xfs_dir3_icleaf_hdr *leafhdr, 76 xfs_dir3_leaf_find_entry(struct xfs_dir3_icleaf_hdr *leafhdr,
|
D | xfs_dir2_block.c | 921 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_leaf_to_block() local 929 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leaf_to_block() 933 ASSERT(leafhdr.magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_to_block() 934 leafhdr.magic == XFS_DIR3_LEAF1_MAGIC); in xfs_dir2_leaf_to_block() 971 (uint)sizeof(*lep) * (leafhdr.count - leafhdr.stale); in xfs_dir2_leaf_to_block() 1002 btp->count = cpu_to_be32(leafhdr.count - leafhdr.stale); in xfs_dir2_leaf_to_block() 1009 for (from = to = 0; from < leafhdr.count; from++) { in xfs_dir2_leaf_to_block()
|
D | xfs_da_btree.c | 573 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_da3_root_split() local 577 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_da3_root_split() 580 ASSERT(leafhdr.magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_root_split() 581 leafhdr.magic == XFS_DIR3_LEAFN_MAGIC); in xfs_da3_root_split() 582 size = (int)((char *)&ents[leafhdr.count] - (char *)leaf); in xfs_da3_root_split() 2221 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_da3_swap_lastblock() local 2225 dp->d_ops->leaf_hdr_from_disk(&leafhdr, dead_leaf2); in xfs_da3_swap_lastblock() 2228 dead_hash = be32_to_cpu(ents[leafhdr.count - 1].hashval); in xfs_da3_swap_lastblock()
|
D | xfs_attr_leaf.c | 867 struct xfs_attr3_icleaf_hdr leafhdr; in xfs_attr_shortform_allfit() local 873 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xfs_attr_shortform_allfit() 877 for (i = 0; i < leafhdr.count; entry++, i++) { in xfs_attr_shortform_allfit()
|
/Linux-v4.19/fs/xfs/scrub/ |
D | attr.c | 160 struct xfs_attr3_icleaf_hdr *leafhdr) in xchk_xattr_check_freemap() argument 172 leafhdr->freemap[i].base, in xchk_xattr_check_freemap() 173 leafhdr->freemap[i].size)) in xchk_xattr_check_freemap() 192 struct xfs_attr3_icleaf_hdr *leafhdr, in xchk_xattr_entry() argument 215 if (nameidx < leafhdr->firstused || in xchk_xattr_entry() 251 struct xfs_attr3_icleaf_hdr leafhdr; in xchk_xattr_block() local 285 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xchk_xattr_block() 288 if (leafhdr.usedbytes > mp->m_attr_geo->blksize) in xchk_xattr_block() 290 if (leafhdr.firstused > mp->m_attr_geo->blksize) in xchk_xattr_block() 292 if (leafhdr.firstused < hdrsize) in xchk_xattr_block() [all …]
|
D | dir.c | 481 struct xfs_dir3_icleaf_hdr leafhdr; in xchk_directory_leaf1_bestfree() local 505 d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xchk_directory_leaf1_bestfree() 528 if (leafhdr.count > d_ops->leaf_max_ents(geo)) { in xchk_directory_leaf1_bestfree() 534 if ((char *)&ents[leafhdr.count] > (char *)bestp) { in xchk_directory_leaf1_bestfree() 540 for (i = 0; i < leafhdr.count; i++) { in xchk_directory_leaf1_bestfree() 548 if (leafhdr.stale != stale) in xchk_directory_leaf1_bestfree()
|
/Linux-v4.19/fs/xfs/ |
D | xfs_attr_list.c | 285 struct xfs_attr3_icleaf_hdr leafhdr; in xfs_attr_node_list() local 325 &leafhdr, leaf); in xfs_attr_node_list() 328 entries[leafhdr.count - 1].hashval)) { in xfs_attr_node_list() 367 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xfs_attr_node_list() 368 if (context->seen_enough || leafhdr.forw == 0) in xfs_attr_node_list() 370 cursor->blkno = leafhdr.forw; in xfs_attr_node_list()
|
/Linux-v4.19/fs/btrfs/ |
D | check-integrity.c | 969 struct btrfs_leaf *const leafhdr = in btrfsic_process_metablock() local 973 sf->nr = btrfs_stack_header_nritems(&leafhdr->header); in btrfsic_process_metablock() 979 &leafhdr->header), in btrfsic_process_metablock() 981 &leafhdr->header)); in btrfsic_process_metablock() 993 (uintptr_t)(leafhdr->items + sf->i) - in btrfsic_process_metablock() 994 (uintptr_t)leafhdr; in btrfsic_process_metablock()
|