Lines Matching full:ds
243 struct xchk_da_btree *ds, in xchk_xattr_entry() argument
253 struct xfs_mount *mp = ds->state->mp; in xchk_xattr_entry()
254 unsigned long *usedmap = xchk_xattr_usedmap(ds->sc); in xchk_xattr_entry()
262 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
266 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
272 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
283 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
289 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
292 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
294 if (!xchk_xattr_set_map(ds->sc, usedmap, nameidx, namesize)) in xchk_xattr_entry()
295 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
296 if (!(ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT)) in xchk_xattr_entry()
303 struct xchk_da_btree *ds, in xchk_xattr_block() argument
307 struct xfs_mount *mp = ds->state->mp; in xchk_xattr_block()
308 struct xfs_da_state_blk *blk = &ds->state->path.blk[level]; in xchk_xattr_block()
310 xfs_dablk_t *last_checked = ds->private; in xchk_xattr_block()
327 error = xchk_setup_xattr_buf(ds->sc, 0, KM_MAYFAIL); in xchk_xattr_block()
332 usedmap = xchk_xattr_usedmap(ds->sc); in xchk_xattr_block()
338 if (xfs_sb_version_hascrc(&ds->sc->mp->m_sb)) { in xchk_xattr_block()
343 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
346 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
354 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
356 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
358 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
359 if (!xchk_xattr_set_map(ds->sc, usedmap, 0, hdrsize)) in xchk_xattr_block()
360 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
362 if (ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_xattr_block()
367 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
373 if (!xchk_xattr_set_map(ds->sc, usedmap, off, in xchk_xattr_block()
375 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
380 xchk_xattr_entry(ds, level, buf_end, leaf, &leafhdr, in xchk_xattr_block()
383 if (ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_xattr_block()
387 if (!xchk_xattr_check_freemap(ds->sc, usedmap, &leafhdr)) in xchk_xattr_block()
388 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
391 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
400 struct xchk_da_btree *ds, in xchk_xattr_rec() argument
403 struct xfs_mount *mp = ds->state->mp; in xchk_xattr_rec()
404 struct xfs_da_state_blk *blk = &ds->state->path.blk[level]; in xchk_xattr_rec()
421 error = xchk_xattr_block(ds, level); in xchk_xattr_rec()
424 if (ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_xattr_rec()
428 error = xchk_da_btree_hash(ds, level, &ent->hashval); in xchk_xattr_rec()
437 xchk_da_set_corrupt(ds, level); in xchk_xattr_rec()
446 xchk_da_set_corrupt(ds, level); in xchk_xattr_rec()
451 xchk_da_set_corrupt(ds, level); in xchk_xattr_rec()
459 xchk_da_set_corrupt(ds, level); in xchk_xattr_rec()
465 xchk_da_set_corrupt(ds, level); in xchk_xattr_rec()