/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
H A D | xfs_dir2_leaf.c | 28 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); in xfs_dir3_leaf1_check() 190 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir3_leaf_verify() local 197 xfs_dir2_leaf_hdr_from_disk(mp, &leafhdr, bp->b_addr); in xfs_dir3_leaf_verify() 198 return xfs_dir3_leaf_check_int(mp, &leafhdr, bp->b_addr); in xfs_dir3_leaf_verify() 393 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_block_to_leaf() local 481 xfs_dir3_leaf_find_stale( struct xfs_dir3_icleaf_hdr *leafhdr, struct xfs_dir2_leaf_entry *ents, int index, int *lowstale, int *highstale) xfs_dir3_leaf_find_stale() argument 512 xfs_dir3_leaf_find_entry( struct xfs_dir3_icleaf_hdr *leafhdr, struct xfs_dir2_leaf_entry *ents, int index, int compact, int lowstale, int highstale, int *lfloglow, int *lfloghigh) xfs_dir3_leaf_find_entry() argument 608 struct xfs_dir3_icleaf_hdr leafhdr; xfs_dir2_leaf_addname() local 911 xfs_dir3_leaf_compact( xfs_da_args_t *args, struct xfs_dir3_icleaf_hdr *leafhdr, struct xfs_buf *bp) xfs_dir3_leaf_compact() argument 965 xfs_dir3_leaf_compact_x1( struct xfs_dir3_icleaf_hdr *leafhdr, struct xfs_dir2_leaf_entry *ents, int *indexp, int *lowstalep, int *highstalep, int *lowlogp, int *highlogp) xfs_dir3_leaf_compact_x1() argument 1161 struct xfs_dir3_icleaf_hdr leafhdr; xfs_dir2_leaf_lookup() local 1205 xfs_dir2_leaf_lookup_int( xfs_da_args_t *args, struct xfs_buf **lbpp, int *indexp, struct xfs_buf **dbpp, struct xfs_dir3_icleaf_hdr *leafhdr) xfs_dir2_leaf_lookup_int() argument 1357 struct xfs_dir3_icleaf_hdr leafhdr; xfs_dir2_leaf_removename() local 1495 struct xfs_dir3_icleaf_hdr leafhdr; xfs_dir2_leaf_replace() local 1546 struct xfs_dir3_icleaf_hdr leafhdr; xfs_dir2_leaf_search_hash() local 1685 struct xfs_dir3_icleaf_hdr leafhdr; xfs_dir2_node_to_leaf() local [all...] |
H A D | xfs_dir2_node.c | 65 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); 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 in xfs_dir2_leafn_add() 604 struct xfs_dir3_icleaf_hdr leafhdr; xfs_dir2_leaf_lasthash() local 646 struct xfs_dir3_icleaf_hdr leafhdr; xfs_dir2_leafn_lookup_for_addname() local 796 struct xfs_dir3_icleaf_hdr leafhdr; xfs_dir2_leafn_lookup_for_entry() local 1282 struct xfs_dir3_icleaf_hdr leafhdr; xfs_dir2_leafn_remove() local 1498 struct xfs_dir3_icleaf_hdr leafhdr; xfs_dir2_leafn_toosmall() local 2225 struct xfs_dir3_icleaf_hdr leafhdr; xfs_dir2_node_replace() local [all...] |
H A D | xfs_dir2_block.c | 945 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 in xfs_dir2_leaf_to_block() [all...] |
H A D | xfs_dir2_priv.h | 105 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 D | xfs_da_btree.c | 685 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_da3_root_split() local 688 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_da3_root_split() 690 ASSERT(leafhdr.magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_root_split() 691 leafhdr.magic == XFS_DIR3_LEAFN_MAGIC); in xfs_da3_root_split() 692 size = (int)((char *)&leafhdr.ents[leafhdr.count] - in xfs_da3_root_split() 2316 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_da3_swap_lastblock() local 2320 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, in xfs_da3_swap_lastblock() 2322 ents = leafhdr.ents; in xfs_da3_swap_lastblock() 2324 dead_hash = be32_to_cpu(ents[leafhdr in xfs_da3_swap_lastblock() [all...] |
H A D | xfs_attr_leaf.c | 240 struct xfs_attr3_icleaf_hdr *leafhdr, in xfs_attr3_leaf_verify_entry() 259 if (nameidx < leafhdr->firstused || nameidx >= mp->m_attr_geo->blksize) in xfs_attr3_leaf_verify_entry() 981 struct xfs_attr3_icleaf_hdr leafhdr; in xfs_attr_shortform_allfit() local 987 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xfs_attr_shortform_allfit() 991 for (i = 0; i < leafhdr.count; entry++, i++) { in xfs_attr_shortform_allfit() 236 xfs_attr3_leaf_verify_entry( struct xfs_mount *mp, char *buf_end, struct xfs_attr_leafblock *leaf, struct xfs_attr3_icleaf_hdr *leafhdr, struct xfs_attr_leaf_entry *ent, int idx, __u32 *last_hashval) xfs_attr3_leaf_verify_entry() argument
|
/kernel/linux/linux-6.6/fs/xfs/libxfs/ |
H A D | xfs_dir2_leaf.c | 28 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 490 xfs_dir3_leaf_find_stale( struct xfs_dir3_icleaf_hdr *leafhdr, struct xfs_dir2_leaf_entry *ents, int index, int *lowstale, int *highstale) xfs_dir3_leaf_find_stale() argument 521 xfs_dir3_leaf_find_entry( struct xfs_dir3_icleaf_hdr *leafhdr, struct xfs_dir2_leaf_entry *ents, int index, int compact, int lowstale, int highstale, int *lfloglow, int *lfloghigh) xfs_dir3_leaf_find_entry() argument 617 struct xfs_dir3_icleaf_hdr leafhdr; xfs_dir2_leaf_addname() local 920 xfs_dir3_leaf_compact( xfs_da_args_t *args, struct xfs_dir3_icleaf_hdr *leafhdr, struct xfs_buf *bp) xfs_dir3_leaf_compact() argument 974 xfs_dir3_leaf_compact_x1( struct xfs_dir3_icleaf_hdr *leafhdr, struct xfs_dir2_leaf_entry *ents, int *indexp, int *lowstalep, int *highstalep, int *lowlogp, int *highlogp) xfs_dir3_leaf_compact_x1() argument 1170 struct xfs_dir3_icleaf_hdr leafhdr; xfs_dir2_leaf_lookup() local 1214 xfs_dir2_leaf_lookup_int( xfs_da_args_t *args, struct xfs_buf **lbpp, int *indexp, struct xfs_buf **dbpp, struct xfs_dir3_icleaf_hdr *leafhdr) xfs_dir2_leaf_lookup_int() argument 1366 struct xfs_dir3_icleaf_hdr leafhdr; xfs_dir2_leaf_removename() local 1504 struct xfs_dir3_icleaf_hdr leafhdr; xfs_dir2_leaf_replace() local 1555 struct xfs_dir3_icleaf_hdr leafhdr; xfs_dir2_leaf_search_hash() local 1694 struct xfs_dir3_icleaf_hdr leafhdr; xfs_dir2_node_to_leaf() local [all...] |
H A D | xfs_dir2_node.c | 65 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 in xfs_dir2_leafn_add() 604 struct xfs_dir3_icleaf_hdr leafhdr; xfs_dir2_leaf_lasthash() local 646 struct xfs_dir3_icleaf_hdr leafhdr; xfs_dir2_leafn_lookup_for_addname() local 796 struct xfs_dir3_icleaf_hdr leafhdr; xfs_dir2_leafn_lookup_for_entry() local 1282 struct xfs_dir3_icleaf_hdr leafhdr; xfs_dir2_leafn_remove() local 1498 struct xfs_dir3_icleaf_hdr leafhdr; xfs_dir2_leafn_toosmall() local 2225 struct xfs_dir3_icleaf_hdr leafhdr; xfs_dir2_node_replace() local [all...] |
H A D | xfs_dir2_block.c | 945 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 in xfs_dir2_leaf_to_block() [all...] |
H A D | xfs_dir2_priv.h | 105 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 D | xfs_da_btree.c | 700 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_da3_root_split() local 703 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_da3_root_split() 705 ASSERT(leafhdr.magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_root_split() 706 leafhdr.magic == XFS_DIR3_LEAFN_MAGIC); in xfs_da3_root_split() 707 size = (int)((char *)&leafhdr.ents[leafhdr.count] - in xfs_da3_root_split() 2328 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_da3_swap_lastblock() local 2332 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, in xfs_da3_swap_lastblock() 2334 ents = leafhdr.ents; in xfs_da3_swap_lastblock() 2336 dead_hash = be32_to_cpu(ents[leafhdr in xfs_da3_swap_lastblock() [all...] |
H A D | xfs_attr_leaf.c | 242 struct xfs_attr3_icleaf_hdr *leafhdr, in xfs_attr3_leaf_verify_entry() 261 if (nameidx < leafhdr->firstused || nameidx >= mp->m_attr_geo->blksize) in xfs_attr3_leaf_verify_entry() 1013 struct xfs_attr3_icleaf_hdr leafhdr; in xfs_attr_shortform_allfit() local 1019 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xfs_attr_shortform_allfit() 1023 for (i = 0; i < leafhdr.count; entry++, i++) { in xfs_attr_shortform_allfit() 238 xfs_attr3_leaf_verify_entry( struct xfs_mount *mp, char *buf_end, struct xfs_attr_leafblock *leaf, struct xfs_attr3_icleaf_hdr *leafhdr, struct xfs_attr_leaf_entry *ent, int idx, __u32 *last_hashval) xfs_attr3_leaf_verify_entry() argument
|
/kernel/linux/linux-5.10/fs/xfs/scrub/ |
H A D | attr.c | 217 struct xfs_attr3_icleaf_hdr *leafhdr) in xchk_xattr_check_freemap() 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() 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 in xchk_xattr_block() 214 xchk_xattr_check_freemap( struct xfs_scrub *sc, unsigned long *map, struct xfs_attr3_icleaf_hdr *leafhdr) xchk_xattr_check_freemap() argument 242 xchk_xattr_entry( struct xchk_da_btree *ds, int level, char *buf_end, struct xfs_attr_leafblock *leaf, struct xfs_attr3_icleaf_hdr *leafhdr, struct xfs_attr_leaf_entry *ent, int idx, unsigned int *usedbytes, __u32 *last_hashval) xchk_xattr_entry() argument [all...] |
H A D | dir.c | 488 struct xfs_dir3_icleaf_hdr leafhdr; in xchk_directory_leaf1_bestfree() local 510 xfs_dir2_leaf_hdr_from_disk(sc->ip->i_mount, &leafhdr, leaf); in xchk_directory_leaf1_bestfree() 532 if (leafhdr.count > geo->leaf_max_ents) { in xchk_directory_leaf1_bestfree() 538 if ((char *)&leafhdr.ents[leafhdr.count] > (char *)bestp) { in xchk_directory_leaf1_bestfree() 544 for (i = 0; i < leafhdr.count; i++) { in xchk_directory_leaf1_bestfree() 545 hash = be32_to_cpu(leafhdr.ents[i].hashval); in xchk_directory_leaf1_bestfree() 549 if (leafhdr.ents[i].address == in xchk_directory_leaf1_bestfree() 553 if (leafhdr.stale != stale) in xchk_directory_leaf1_bestfree()
|
/kernel/linux/linux-6.6/fs/xfs/scrub/ |
H A D | attr.c | 280 struct xfs_attr3_icleaf_hdr *leafhdr) in xchk_xattr_check_freemap() 290 leafhdr->freemap[i].base, in xchk_xattr_check_freemap() 291 leafhdr->freemap[i].size)) in xchk_xattr_check_freemap() 309 struct xfs_attr3_icleaf_hdr *leafhdr, in xchk_xattr_entry() 332 if (nameidx < leafhdr->firstused || in xchk_xattr_entry() 368 struct xfs_attr3_icleaf_hdr leafhdr; in xchk_xattr_block() local 403 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xchk_xattr_block() 406 if (leafhdr.usedbytes > mp->m_attr_geo->blksize) in xchk_xattr_block() 408 if (leafhdr.firstused > mp->m_attr_geo->blksize) in xchk_xattr_block() 410 if (leafhdr in xchk_xattr_block() 278 xchk_xattr_check_freemap( struct xfs_scrub *sc, struct xfs_attr3_icleaf_hdr *leafhdr) xchk_xattr_check_freemap() argument 304 xchk_xattr_entry( struct xchk_da_btree *ds, int level, char *buf_end, struct xfs_attr_leafblock *leaf, struct xfs_attr3_icleaf_hdr *leafhdr, struct xfs_attr_leaf_entry *ent, int idx, unsigned int *usedbytes, __u32 *last_hashval) xchk_xattr_entry() argument [all...] |
H A D | dir.c | 455 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()
|
/kernel/linux/linux-5.10/fs/xfs/ |
H A D | xfs_attr_list.c | 287 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() 369 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xfs_attr_node_list() 370 if (context->seen_enough || leafhdr.forw == 0) in xfs_attr_node_list() 372 cursor->blkno = leafhdr.forw; in xfs_attr_node_list()
|
/kernel/linux/linux-6.6/fs/xfs/ |
H A D | xfs_attr_list.c | 287 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() 369 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xfs_attr_node_list() 370 if (context->seen_enough || leafhdr.forw == 0) in xfs_attr_node_list() 372 cursor->blkno = leafhdr.forw; in xfs_attr_node_list()
|
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | check-integrity.c | 959 struct btrfs_leaf *const leafhdr = in btrfsic_process_metablock() local 963 sf->nr = btrfs_stack_header_nritems(&leafhdr->header); in btrfsic_process_metablock() 969 &leafhdr->header), in btrfsic_process_metablock() 971 &leafhdr->header)); in btrfsic_process_metablock() 983 (uintptr_t)(leafhdr->items + sf->i) - in btrfsic_process_metablock() 984 (uintptr_t)leafhdr; in btrfsic_process_metablock()
|
/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | check-integrity.c | 906 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()
|