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
351 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xchk_xattr_block()
354 if (leafhdr.usedbytes > mp->m_attr_geo->blksize) in xchk_xattr_block()
356 if (leafhdr.firstused > mp->m_attr_geo->blksize) in xchk_xattr_block()
358 if (leafhdr.firstused < hdrsize) in xchk_xattr_block()
367 if ((char *)&entries[leafhdr.count] > (char *)leaf + leafhdr.firstused) in xchk_xattr_block()
371 for (i = 0, ent = entries; i < leafhdr.count; ent++, i++) { in xchk_xattr_block()
381 xchk_xattr_entry(ds, level, buf_end, leaf, &leafhdr, in xchk_xattr_block()
388 if (!xchk_xattr_check_freemap(ds->sc, usedmap, &leafhdr)) in xchk_xattr_block()
391 if (leafhdr.usedbytes != usedbytes) in xchk_xattr_block()