Lines Matching refs: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, in xchk_xattr_block()
333 usedmap = xchk_xattr_usedmap(ds->sc); in xchk_xattr_block()
339 if (xfs_has_crc(ds->sc->mp)) { in xchk_xattr_block()
344 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
347 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
355 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
357 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
359 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
360 if (!xchk_xattr_set_map(ds->sc, usedmap, 0, hdrsize)) in xchk_xattr_block()
361 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
363 if (ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_xattr_block()
368 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
374 if (!xchk_xattr_set_map(ds->sc, usedmap, off, in xchk_xattr_block()
376 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
381 xchk_xattr_entry(ds, level, buf_end, leaf, &leafhdr, in xchk_xattr_block()
384 if (ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_xattr_block()
388 if (!xchk_xattr_check_freemap(ds->sc, usedmap, &leafhdr)) in xchk_xattr_block()
389 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
392 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
401 struct xchk_da_btree *ds, in xchk_xattr_rec() argument
404 struct xfs_mount *mp = ds->state->mp; in xchk_xattr_rec()
405 struct xfs_da_state_blk *blk = &ds->state->path.blk[level]; in xchk_xattr_rec()
422 error = xchk_xattr_block(ds, level); in xchk_xattr_rec()
425 if (ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_xattr_rec()
429 error = xchk_da_btree_hash(ds, level, &ent->hashval); in xchk_xattr_rec()
438 xchk_da_set_corrupt(ds, level); in xchk_xattr_rec()
447 xchk_da_set_corrupt(ds, level); in xchk_xattr_rec()
452 xchk_da_set_corrupt(ds, level); in xchk_xattr_rec()
460 xchk_da_set_corrupt(ds, level); in xchk_xattr_rec()
466 xchk_da_set_corrupt(ds, level); in xchk_xattr_rec()