Home
last modified time | relevance | path

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

/Linux-v5.4/fs/xfs/libxfs/
Dxfs_dir2_leaf.c44 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir3_leaf1_check() local
46 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir3_leaf1_check()
48 if (leafhdr.magic == XFS_DIR3_LEAF1_MAGIC) { in xfs_dir3_leaf1_check()
52 } else if (leafhdr.magic != XFS_DIR2_LEAF1_MAGIC) in xfs_dir3_leaf1_check()
55 return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); in xfs_dir3_leaf1_check()
89 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir3_leaf_check_int() local
99 ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir3_leaf_check_int()
100 hdr = &leafhdr; in xfs_dir3_leaf_check_int()
350 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_block_to_leaf() local
384 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_block_to_leaf()
[all …]
Dxfs_dir2_node.c46 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir3_leafn_check() local
48 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir3_leafn_check()
50 if (leafhdr.magic == XFS_DIR3_LEAFN_MAGIC) { in xfs_dir3_leafn_check()
54 } else if (leafhdr.magic != XFS_DIR2_LEAFN_MAGIC) in xfs_dir3_leafn_check()
57 return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); in xfs_dir3_leafn_check()
428 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_leafn_add() local
441 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leafn_add()
458 if (leafhdr.count == dp->d_ops->leaf_max_ents(args->geo)) { in xfs_dir2_leafn_add()
459 if (!leafhdr.stale) in xfs_dir2_leafn_add()
461 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.c918 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_leaf_to_block() local
926 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leaf_to_block()
930 ASSERT(leafhdr.magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_to_block()
931 leafhdr.magic == XFS_DIR3_LEAF1_MAGIC); in xfs_dir2_leaf_to_block()
968 (uint)sizeof(*lep) * (leafhdr.count - leafhdr.stale); in xfs_dir2_leaf_to_block()
999 btp->count = cpu_to_be32(leafhdr.count - leafhdr.stale); in xfs_dir2_leaf_to_block()
1006 for (from = to = 0; from < leafhdr.count; from++) { in xfs_dir2_leaf_to_block()
Dxfs_da_btree.c591 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_da3_root_split() local
595 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_da3_root_split()
598 ASSERT(leafhdr.magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_root_split()
599 leafhdr.magic == XFS_DIR3_LEAFN_MAGIC); in xfs_da3_root_split()
600 size = (int)((char *)&ents[leafhdr.count] - (char *)leaf); in xfs_da3_root_split()
2239 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_da3_swap_lastblock() local
2243 dp->d_ops->leaf_hdr_from_disk(&leafhdr, dead_leaf2); in xfs_da3_swap_lastblock()
2246 dead_hash = be32_to_cpu(ents[leafhdr.count - 1].hashval); in xfs_da3_swap_lastblock()
Dxfs_attr_leaf.c885 struct xfs_attr3_icleaf_hdr leafhdr; in xfs_attr_shortform_allfit() local
891 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xfs_attr_shortform_allfit()
895 for (i = 0; i < leafhdr.count; entry++, i++) { in xfs_attr_shortform_allfit()
/Linux-v5.4/fs/xfs/scrub/
Dattr.c217 struct xfs_attr3_icleaf_hdr *leafhdr) in xchk_xattr_check_freemap() argument
228 leafhdr->freemap[i].base, in xchk_xattr_check_freemap()
229 leafhdr->freemap[i].size)) in xchk_xattr_check_freemap()
247 struct xfs_attr3_icleaf_hdr *leafhdr, in xchk_xattr_entry() argument
270 if (nameidx < leafhdr->firstused || in xchk_xattr_entry()
306 struct xfs_attr3_icleaf_hdr leafhdr; in xchk_xattr_block() local
350 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xchk_xattr_block()
353 if (leafhdr.usedbytes > mp->m_attr_geo->blksize) in xchk_xattr_block()
355 if (leafhdr.firstused > mp->m_attr_geo->blksize) in xchk_xattr_block()
357 if (leafhdr.firstused < hdrsize) in xchk_xattr_block()
[all …]
Ddir.c477 struct xfs_dir3_icleaf_hdr leafhdr; in xchk_directory_leaf1_bestfree() local
501 d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xchk_directory_leaf1_bestfree()
524 if (leafhdr.count > d_ops->leaf_max_ents(geo)) { in xchk_directory_leaf1_bestfree()
530 if ((char *)&ents[leafhdr.count] > (char *)bestp) { in xchk_directory_leaf1_bestfree()
536 for (i = 0; i < leafhdr.count; i++) { in xchk_directory_leaf1_bestfree()
544 if (leafhdr.stale != stale) in xchk_directory_leaf1_bestfree()
/Linux-v5.4/fs/xfs/
Dxfs_attr_list.c280 struct xfs_attr3_icleaf_hdr leafhdr; in xfs_attr_node_list() local
320 &leafhdr, leaf); in xfs_attr_node_list()
323 entries[leafhdr.count - 1].hashval)) { in xfs_attr_node_list()
362 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xfs_attr_node_list()
363 if (context->seen_enough || leafhdr.forw == 0) in xfs_attr_node_list()
365 cursor->blkno = leafhdr.forw; in xfs_attr_node_list()
/Linux-v5.4/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()