Home
last modified time | relevance | path

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

/linux/fs/xfs/libxfs/
H A Dxfs_dir2_leaf.c29 struct xfs_dir3_icleaf_hdr *leafhdr);
106 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir3_leaf1_check() local
108 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_dir3_leaf1_check()
110 if (leafhdr.magic == XFS_DIR3_LEAF1_MAGIC) { in xfs_dir3_leaf1_check()
114 } else if (leafhdr.magic != XFS_DIR2_LEAF1_MAGIC) in xfs_dir3_leaf1_check()
117 return xfs_dir3_leaf_check_int(dp->i_mount, &leafhdr, leaf, false); in xfs_dir3_leaf1_check()
200 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir3_leaf_verify() local
207 xfs_dir2_leaf_hdr_from_disk(mp, &leafhdr, bp->b_addr); in xfs_dir3_leaf_verify()
208 return xfs_dir3_leaf_check_int(mp, &leafhdr, bp->b_addr, true); in xfs_dir3_leaf_verify()
453 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_block_to_leaf() local
[all …]
H A Dxfs_dir2_node.c66 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir3_leafn_check() local
68 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_dir3_leafn_check()
70 if (leafhdr.magic == XFS_DIR3_LEAFN_MAGIC) { in xfs_dir3_leafn_check()
74 } else if (leafhdr.magic != XFS_DIR2_LEAFN_MAGIC) in xfs_dir3_leafn_check()
77 return xfs_dir3_leaf_check_int(dp->i_mount, &leafhdr, leaf, false); in xfs_dir3_leafn_check()
505 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_leafn_add() local
518 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_dir2_leafn_add()
519 ents = leafhdr.ents; in xfs_dir2_leafn_add()
538 if (leafhdr.count == args->geo->leaf_max_ents) { in xfs_dir2_leafn_add()
539 if (!leafhdr.stale) in xfs_dir2_leafn_add()
[all …]
H 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()
H 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,
H 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()
2502 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_da3_swap_lastblock() local
2506 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, in xfs_da3_swap_lastblock()
2508 ents = leafhdr.ents; in xfs_da3_swap_lastblock()
2510 dead_hash = be32_to_cpu(ents[leafhdr.count - 1].hashval); in xfs_da3_swap_lastblock()
H A Dxfs_attr_leaf.c300 struct xfs_attr3_icleaf_hdr *leafhdr, in xfs_attr3_leaf_verify_entry() argument
319 if (nameidx < leafhdr->firstused || nameidx >= mp->m_attr_geo->blksize) in xfs_attr3_leaf_verify_entry()
1108 struct xfs_attr3_icleaf_hdr leafhdr; in xfs_attr_shortform_allfit() local
1114 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xfs_attr_shortform_allfit()
1118 for (i = 0; i < leafhdr.count; entry++, i++) { in xfs_attr_shortform_allfit()
/linux/fs/xfs/scrub/
H A Dattr.c300 struct xfs_attr3_icleaf_hdr *leafhdr, in xchk_xattr_entry() argument
323 if (nameidx < leafhdr->firstused || in xchk_xattr_entry()
362 struct xfs_attr3_icleaf_hdr leafhdr; in xchk_xattr_block() local
398 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xchk_xattr_block()
406 if (leafhdr.count == 0) { in xchk_xattr_block()
412 if (leafhdr.usedbytes > mp->m_attr_geo->blksize) in xchk_xattr_block()
414 if (leafhdr.firstused > mp->m_attr_geo->blksize) in xchk_xattr_block()
416 if (leafhdr.firstused < hdrsize) in xchk_xattr_block()
420 if (leafhdr.holes) in xchk_xattr_block()
427 if ((char *)&entries[leafhdr.count] > (char *)leaf + leafhdr.firstused) in xchk_xattr_block()
[all …]
H 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()
H A Ddir.c625 struct xfs_dir3_icleaf_hdr leafhdr; in xchk_directory_leaf1_bestfree() local
647 xfs_dir2_leaf_hdr_from_disk(sc->ip->i_mount, &leafhdr, leaf); in xchk_directory_leaf1_bestfree()
673 if (leafhdr.count > geo->leaf_max_ents) { in xchk_directory_leaf1_bestfree()
679 if ((char *)&leafhdr.ents[leafhdr.count] > (char *)bestp) { in xchk_directory_leaf1_bestfree()
685 for (i = 0; i < leafhdr.count; i++) { in xchk_directory_leaf1_bestfree()
686 hash = be32_to_cpu(leafhdr.ents[i].hashval); in xchk_directory_leaf1_bestfree()
690 if (leafhdr.ents[i].address == in xchk_directory_leaf1_bestfree()
694 if (leafhdr.stale != stale) in xchk_directory_leaf1_bestfree()
H 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/
H A Dxfs_attr_list.c315 struct xfs_attr3_icleaf_hdr leafhdr; in xfs_attr_node_list() local
371 &leafhdr, leaf); in xfs_attr_node_list()
374 entries[leafhdr.count - 1].hashval)) { in xfs_attr_node_list()
415 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xfs_attr_node_list()
416 if (context->seen_enough || leafhdr.forw == 0) in xfs_attr_node_list()
418 cursor->blkno = leafhdr.forw; in xfs_attr_node_list()