Home
last modified time | relevance | path

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

/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_dir2_leaf.c28 struct xfs_dir3_icleaf_hdr *leafhdr);
105 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir3_leaf1_check() local
107 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_dir3_leaf1_check()
109 if (leafhdr.magic == XFS_DIR3_LEAF1_MAGIC) { in xfs_dir3_leaf1_check()
113 } else if (leafhdr.magic != XFS_DIR2_LEAF1_MAGIC) in xfs_dir3_leaf1_check()
116 return xfs_dir3_leaf_check_int(dp->i_mount, &leafhdr, leaf, false); in xfs_dir3_leaf1_check()
199 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir3_leaf_verify() local
206 xfs_dir2_leaf_hdr_from_disk(mp, &leafhdr, bp->b_addr); in xfs_dir3_leaf_verify()
207 return xfs_dir3_leaf_check_int(mp, &leafhdr, bp->b_addr, true); in xfs_dir3_leaf_verify()
402 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_block_to_leaf() local
[all …]
H A Dxfs_dir2_node.c65 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir3_leafn_check() local
67 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_dir3_leafn_check()
69 if (leafhdr.magic == XFS_DIR3_LEAFN_MAGIC) { in xfs_dir3_leafn_check()
73 } else if (leafhdr.magic != XFS_DIR2_LEAFN_MAGIC) in xfs_dir3_leafn_check()
76 return xfs_dir3_leaf_check_int(dp->i_mount, &leafhdr, leaf, false); in xfs_dir3_leafn_check()
498 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_leafn_add() local
511 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_dir2_leafn_add()
512 ents = leafhdr.ents; in xfs_dir2_leafn_add()
530 if (leafhdr.count == args->geo->leaf_max_ents) { in xfs_dir2_leafn_add()
531 if (!leafhdr.stale) in xfs_dir2_leafn_add()
[all …]
H A Dxfs_dir2_block.c945 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_leaf_to_block() local
953 xfs_dir2_leaf_hdr_from_disk(mp, &leafhdr, leaf); in xfs_dir2_leaf_to_block()
956 ASSERT(leafhdr.magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_to_block()
957 leafhdr.magic == XFS_DIR3_LEAF1_MAGIC); in xfs_dir2_leaf_to_block()
994 (uint)sizeof(*lep) * (leafhdr.count - leafhdr.stale); in xfs_dir2_leaf_to_block()
1025 btp->count = cpu_to_be32(leafhdr.count - leafhdr.stale); in xfs_dir2_leaf_to_block()
1032 for (from = to = 0; from < leafhdr.count; from++) { in xfs_dir2_leaf_to_block()
1033 if (leafhdr.ents[from].address == in xfs_dir2_leaf_to_block()
1036 lep[to++] = leafhdr.ents[from]; in xfs_dir2_leaf_to_block()
H A Dxfs_dir2_priv.h105 struct xfs_dir3_icleaf_hdr *leafhdr, struct xfs_buf *bp);
106 extern void xfs_dir3_leaf_compact_x1(struct xfs_dir3_icleaf_hdr *leafhdr,
124 xfs_dir3_leaf_find_entry(struct xfs_dir3_icleaf_hdr *leafhdr,
H A Dxfs_da_btree.c701 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_da3_root_split() local
704 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_da3_root_split()
706 ASSERT(leafhdr.magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_root_split()
707 leafhdr.magic == XFS_DIR3_LEAFN_MAGIC); in xfs_da3_root_split()
708 size = (int)((char *)&leafhdr.ents[leafhdr.count] - in xfs_da3_root_split()
2326 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_da3_swap_lastblock() local
2330 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, in xfs_da3_swap_lastblock()
2332 ents = leafhdr.ents; in xfs_da3_swap_lastblock()
2334 dead_hash = be32_to_cpu(ents[leafhdr.count - 1].hashval); in xfs_da3_swap_lastblock()
H A Dxfs_attr_leaf.c242 struct xfs_attr3_icleaf_hdr *leafhdr, in xfs_attr3_leaf_verify_entry() argument
261 if (nameidx < leafhdr->firstused || nameidx >= mp->m_attr_geo->blksize) in xfs_attr3_leaf_verify_entry()
1015 struct xfs_attr3_icleaf_hdr leafhdr; in xfs_attr_shortform_allfit() local
1021 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xfs_attr_shortform_allfit()
1025 for (i = 0; i < leafhdr.count; entry++, i++) { in xfs_attr_shortform_allfit()
/openbmc/linux/fs/xfs/scrub/
H A Dattr.c276 struct xfs_attr3_icleaf_hdr *leafhdr) in xchk_xattr_check_freemap() argument
286 leafhdr->freemap[i].base, in xchk_xattr_check_freemap()
287 leafhdr->freemap[i].size)) in xchk_xattr_check_freemap()
305 struct xfs_attr3_icleaf_hdr *leafhdr, in xchk_xattr_entry() argument
328 if (nameidx < leafhdr->firstused || in xchk_xattr_entry()
364 struct xfs_attr3_icleaf_hdr leafhdr; in xchk_xattr_block() local
399 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xchk_xattr_block()
402 if (leafhdr.usedbytes > mp->m_attr_geo->blksize) in xchk_xattr_block()
404 if (leafhdr.firstused > mp->m_attr_geo->blksize) in xchk_xattr_block()
406 if (leafhdr.firstused < hdrsize) in xchk_xattr_block()
[all …]
H A Ddir.c455 struct xfs_dir3_icleaf_hdr leafhdr; in xchk_directory_leaf1_bestfree() local
477 xfs_dir2_leaf_hdr_from_disk(sc->ip->i_mount, &leafhdr, leaf); in xchk_directory_leaf1_bestfree()
503 if (leafhdr.count > geo->leaf_max_ents) { in xchk_directory_leaf1_bestfree()
509 if ((char *)&leafhdr.ents[leafhdr.count] > (char *)bestp) { in xchk_directory_leaf1_bestfree()
515 for (i = 0; i < leafhdr.count; i++) { in xchk_directory_leaf1_bestfree()
516 hash = be32_to_cpu(leafhdr.ents[i].hashval); in xchk_directory_leaf1_bestfree()
520 if (leafhdr.ents[i].address == in xchk_directory_leaf1_bestfree()
524 if (leafhdr.stale != stale) in xchk_directory_leaf1_bestfree()
/openbmc/linux/fs/xfs/
H A Dxfs_attr_list.c289 struct xfs_attr3_icleaf_hdr leafhdr; in xfs_attr_node_list() local
327 &leafhdr, leaf); in xfs_attr_node_list()
330 entries[leafhdr.count - 1].hashval)) { in xfs_attr_node_list()
371 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xfs_attr_node_list()
372 if (context->seen_enough || leafhdr.forw == 0) in xfs_attr_node_list()
374 cursor->blkno = leafhdr.forw; in xfs_attr_node_list()
/openbmc/linux/fs/btrfs/
H A Dcheck-integrity.c906 struct btrfs_leaf *const leafhdr = in btrfsic_process_metablock() local
910 sf->nr = btrfs_stack_header_nritems(&leafhdr->header); in btrfsic_process_metablock()
916 &leafhdr->header), in btrfsic_process_metablock()
918 &leafhdr->header)); in btrfsic_process_metablock()
930 (uintptr_t)(leafhdr->items + sf->i) - in btrfsic_process_metablock()
931 (uintptr_t)leafhdr; in btrfsic_process_metablock()