Lines Matching refs:leafhdr
160 struct xfs_attr3_icleaf_hdr *leafhdr) in xchk_xattr_check_freemap() argument
172 leafhdr->freemap[i].base, in xchk_xattr_check_freemap()
173 leafhdr->freemap[i].size)) in xchk_xattr_check_freemap()
192 struct xfs_attr3_icleaf_hdr *leafhdr, in xchk_xattr_entry() argument
215 if (nameidx < leafhdr->firstused || in xchk_xattr_entry()
251 struct xfs_attr3_icleaf_hdr leafhdr; in xchk_xattr_block() local
285 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xchk_xattr_block()
288 if (leafhdr.usedbytes > mp->m_attr_geo->blksize) in xchk_xattr_block()
290 if (leafhdr.firstused > mp->m_attr_geo->blksize) in xchk_xattr_block()
292 if (leafhdr.firstused < hdrsize) in xchk_xattr_block()
301 if ((char *)&entries[leafhdr.count] > (char *)leaf + leafhdr.firstused) in xchk_xattr_block()
305 for (i = 0, ent = entries; i < leafhdr.count; ent++, i++) { in xchk_xattr_block()
315 xchk_xattr_entry(ds, level, buf_end, leaf, &leafhdr, in xchk_xattr_block()
322 if (!xchk_xattr_check_freemap(ds->sc, usedmap, &leafhdr)) in xchk_xattr_block()
325 if (leafhdr.usedbytes != usedbytes) in xchk_xattr_block()