Lines Matching refs:leafhdr
217 struct xfs_attr3_icleaf_hdr *leafhdr) in xchk_xattr_check_freemap() argument
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() argument
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.firstused < hdrsize) in xchk_xattr_block()
366 if ((char *)&entries[leafhdr.count] > (char *)leaf + leafhdr.firstused) in xchk_xattr_block()
370 for (i = 0, ent = entries; i < leafhdr.count; ent++, i++) { in xchk_xattr_block()
380 xchk_xattr_entry(ds, level, buf_end, leaf, &leafhdr, in xchk_xattr_block()
387 if (!xchk_xattr_check_freemap(ds->sc, usedmap, &leafhdr)) in xchk_xattr_block()
390 if (leafhdr.usedbytes != usedbytes) in xchk_xattr_block()