Home
last modified time | relevance | path

Searched refs:leafhdr (Results 1 – 10 of 10) sorted by relevance

/Linux-v4.19/fs/xfs/libxfs/
Dxfs_dir2_leaf.c47 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 …]
Dxfs_dir2_node.c50 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 …]
Dxfs_dir2_priv.h58 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,
Dxfs_dir2_block.c921 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()
Dxfs_da_btree.c573 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()
Dxfs_attr_leaf.c867 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/
Dattr.c160 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 …]
Ddir.c481 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/
Dxfs_attr_list.c285 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/
Dcheck-integrity.c969 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()