Home
last modified time | relevance | path

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

/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 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/libxfs/
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,