Lines Matching refs:leafhdr
280 struct xfs_attr3_icleaf_hdr *leafhdr) in xchk_xattr_check_freemap() argument
290 leafhdr->freemap[i].base, in xchk_xattr_check_freemap()
291 leafhdr->freemap[i].size)) in xchk_xattr_check_freemap()
309 struct xfs_attr3_icleaf_hdr *leafhdr, in xchk_xattr_entry() argument
332 if (nameidx < leafhdr->firstused || in xchk_xattr_entry()
368 struct xfs_attr3_icleaf_hdr leafhdr; in xchk_xattr_block() local
403 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xchk_xattr_block()
406 if (leafhdr.usedbytes > mp->m_attr_geo->blksize) in xchk_xattr_block()
408 if (leafhdr.firstused > mp->m_attr_geo->blksize) in xchk_xattr_block()
410 if (leafhdr.firstused < hdrsize) in xchk_xattr_block()
419 if ((char *)&entries[leafhdr.count] > (char *)leaf + leafhdr.firstused) in xchk_xattr_block()
423 for (i = 0, ent = entries; i < leafhdr.count; ent++, i++) { in xchk_xattr_block()
433 xchk_xattr_entry(ds, level, buf_end, leaf, &leafhdr, in xchk_xattr_block()
440 if (!xchk_xattr_check_freemap(ds->sc, &leafhdr)) in xchk_xattr_block()
443 if (leafhdr.usedbytes != usedbytes) in xchk_xattr_block()