Home
last modified time | relevance | path

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

/linux/fs/xfs/libxfs/
A Dxfs_dir2_leaf.c498 xfs_dir3_leaf_log_ents(args, &leafhdr, lbp, 0, leafhdr.count - 1); in xfs_dir2_block_to_leaf()
637 leafhdr->stale--; in xfs_dir3_leaf_find_entry()
657 leafhdr->stale--; in xfs_dir3_leaf_find_entry()
759 if (!leafhdr.stale) in xfs_dir2_leaf_addname()
1000 leafhdr->ents[to] = leafhdr->ents[from]; in xfs_dir3_leaf_compact()
1008 leafhdr->count -= leafhdr->stale; in xfs_dir3_leaf_compact()
1009 leafhdr->stale = 0; in xfs_dir3_leaf_compact()
1463 leafhdr.stale++; in xfs_dir2_leaf_removename()
1618 for (lep = leafhdr.ents, low = 0, high = leafhdr.count - 1, in xfs_dir2_leaf_search_hash()
1829 if (leafhdr.stale) in xfs_dir2_node_to_leaf()
[all …]
A Dxfs_dir2_node.c519 ents = leafhdr.ents; in xfs_dir2_leafn_add()
539 if (!leafhdr.stale) in xfs_dir2_leafn_add()
623 if (!leafhdr.count) in xfs_dir2_leaf_lasthash()
625 return be32_to_cpu(leafhdr.ents[leafhdr.count - 1].hashval); in xfs_dir2_leaf_lasthash()
1318 leafhdr.stale++; in xfs_dir2_leafn_remove()
1419 (uint)sizeof(leafhdr.ents) * (leafhdr.count - leafhdr.stale)) < in xfs_dir2_leafn_remove()
1520 ents = leafhdr.ents; in xfs_dir2_leafn_toosmall()
1523 count = leafhdr.count - leafhdr.stale; in xfs_dir2_leafn_toosmall()
1559 forward = leafhdr.forw < leafhdr.back; in xfs_dir2_leafn_toosmall()
1563 blkno = forward ? leafhdr.forw : leafhdr.back; in xfs_dir2_leafn_toosmall()
[all …]
A Dxfs_dir2_block.c952 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_leaf_to_block() local
960 xfs_dir2_leaf_hdr_from_disk(mp, &leafhdr, leaf); in xfs_dir2_leaf_to_block()
963 ASSERT(leafhdr.magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_to_block()
964 leafhdr.magic == XFS_DIR3_LEAF1_MAGIC); in xfs_dir2_leaf_to_block()
1002 (uint)sizeof(*lep) * (leafhdr.count - leafhdr.stale); in xfs_dir2_leaf_to_block()
1033 btp->count = cpu_to_be32(leafhdr.count - leafhdr.stale); in xfs_dir2_leaf_to_block()
1040 for (from = to = 0; from < leafhdr.count; from++) { in xfs_dir2_leaf_to_block()
1041 if (leafhdr.ents[from].address == in xfs_dir2_leaf_to_block()
1044 lep[to++] = leafhdr.ents[from]; in xfs_dir2_leaf_to_block()
A Dxfs_dir2_priv.h106 struct xfs_dir3_icleaf_hdr *leafhdr, struct xfs_buf *bp);
107 extern void xfs_dir3_leaf_compact_x1(struct xfs_dir3_icleaf_hdr *leafhdr,
125 xfs_dir3_leaf_find_entry(struct xfs_dir3_icleaf_hdr *leafhdr,
A Dxfs_da_btree.c768 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_da3_root_split() local
771 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_da3_root_split()
773 ASSERT(leafhdr.magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_root_split()
774 leafhdr.magic == XFS_DIR3_LEAFN_MAGIC); in xfs_da3_root_split()
775 size = (int)((char *)&leafhdr.ents[leafhdr.count] - in xfs_da3_root_split()
2471 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_da3_swap_lastblock() local
2475 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, in xfs_da3_swap_lastblock()
2477 ents = leafhdr.ents; in xfs_da3_swap_lastblock()
2479 dead_hash = be32_to_cpu(ents[leafhdr.count - 1].hashval); in xfs_da3_swap_lastblock()
A Dxfs_attr_leaf.c243 struct xfs_attr3_icleaf_hdr *leafhdr, in xfs_attr3_leaf_verify_entry() argument
262 if (nameidx < leafhdr->firstused || nameidx >= mp->m_attr_geo->blksize) in xfs_attr3_leaf_verify_entry()
1020 struct xfs_attr3_icleaf_hdr leafhdr; in xfs_attr_shortform_allfit() local
1026 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xfs_attr_shortform_allfit()
1030 for (i = 0; i < leafhdr.count; entry++, i++) { in xfs_attr_shortform_allfit()
/linux/fs/xfs/scrub/
A Dattr.c297 struct xfs_attr3_icleaf_hdr *leafhdr) in xchk_xattr_check_freemap() argument
307 leafhdr->freemap[i].base, in xchk_xattr_check_freemap()
308 leafhdr->freemap[i].size)) in xchk_xattr_check_freemap()
326 struct xfs_attr3_icleaf_hdr *leafhdr, in xchk_xattr_entry() argument
349 if (nameidx < leafhdr->firstused || in xchk_xattr_entry()
385 struct xfs_attr3_icleaf_hdr leafhdr; in xchk_xattr_block() local
428 if (leafhdr.count == 0) { in xchk_xattr_block()
438 if (leafhdr.firstused < hdrsize) in xchk_xattr_block()
442 if (leafhdr.holes) in xchk_xattr_block()
449 if ((char *)&entries[leafhdr.count] > (char *)leaf + leafhdr.firstused) in xchk_xattr_block()
[all …]
A Dlistxattr.c227 struct xfs_attr3_icleaf_hdr leafhdr; in xchk_xattr_walk_node() local
250 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xchk_xattr_walk_node()
251 if (leafhdr.forw == 0) in xchk_xattr_walk_node()
264 if (xdab_bitmap_test(&seen_dablks, leafhdr.forw, &len)) { in xchk_xattr_walk_node()
270 leafhdr.forw, &leaf_bp); in xchk_xattr_walk_node()
275 error = xdab_bitmap_set(&seen_dablks, leafhdr.forw, 1); in xchk_xattr_walk_node()
A Ddir.c617 struct xfs_dir3_icleaf_hdr leafhdr; in xchk_directory_leaf1_bestfree() local
639 xfs_dir2_leaf_hdr_from_disk(sc->ip->i_mount, &leafhdr, leaf); in xchk_directory_leaf1_bestfree()
665 if (leafhdr.count > geo->leaf_max_ents) { in xchk_directory_leaf1_bestfree()
671 if ((char *)&leafhdr.ents[leafhdr.count] > (char *)bestp) { in xchk_directory_leaf1_bestfree()
677 for (i = 0; i < leafhdr.count; i++) { in xchk_directory_leaf1_bestfree()
678 hash = be32_to_cpu(leafhdr.ents[i].hashval); in xchk_directory_leaf1_bestfree()
682 if (leafhdr.ents[i].address == in xchk_directory_leaf1_bestfree()
686 if (leafhdr.stale != stale) in xchk_directory_leaf1_bestfree()
A Dattr_repair.c392 struct xfs_attr3_icleaf_hdr leafhdr; in xrep_xattr_recover_leaf() local
412 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xrep_xattr_recover_leaf()
418 for (i = 0, ent = entries; i < leafhdr.count; ent++, i++) { in xrep_xattr_recover_leaf()
430 if (nameidx < leafhdr.firstused || in xrep_xattr_recover_leaf()
/linux/fs/xfs/
A Dxfs_attr_list.c314 struct xfs_attr3_icleaf_hdr leafhdr; in xfs_attr_node_list() local
370 &leafhdr, leaf); in xfs_attr_node_list()
373 entries[leafhdr.count - 1].hashval)) { in xfs_attr_node_list()
414 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xfs_attr_node_list()
415 if (context->seen_enough || leafhdr.forw == 0) in xfs_attr_node_list()
417 cursor->blkno = leafhdr.forw; in xfs_attr_node_list()

Completed in 40 milliseconds