Lines Matching full:ds

322 	struct xchk_da_btree		*ds,  in xchk_xattr_entry()  argument
332 struct xfs_mount *mp = ds->state->mp; in xchk_xattr_entry()
333 struct xchk_xattr_buf *ab = ds->sc->buf; in xchk_xattr_entry()
341 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
345 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
351 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
362 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
368 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
371 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
373 if (!xchk_xattr_set_map(ds->sc, ab->usedmap, nameidx, namesize)) in xchk_xattr_entry()
374 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
375 if (!(ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT)) in xchk_xattr_entry()
382 struct xchk_da_btree *ds, in xchk_xattr_block() argument
386 struct xfs_mount *mp = ds->state->mp; in xchk_xattr_block()
387 struct xfs_da_state_blk *blk = &ds->state->path.blk[level]; in xchk_xattr_block()
389 xfs_dablk_t *last_checked = ds->private; in xchk_xattr_block()
393 struct xchk_xattr_buf *ab = ds->sc->buf; in xchk_xattr_block()
408 if (xfs_has_crc(ds->sc->mp)) { in xchk_xattr_block()
413 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
416 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
430 xchk_da_set_preen(ds, level); in xchk_xattr_block()
432 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
435 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
437 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
439 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
440 if (!xchk_xattr_set_map(ds->sc, ab->usedmap, 0, hdrsize)) in xchk_xattr_block()
441 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
443 xchk_da_set_preen(ds, level); in xchk_xattr_block()
445 if (ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_xattr_block()
450 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
456 if (!xchk_xattr_set_map(ds->sc, ab->usedmap, off, in xchk_xattr_block()
458 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
463 xchk_xattr_entry(ds, level, buf_end, leaf, &leafhdr, in xchk_xattr_block()
466 if (ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_xattr_block()
470 if (!xchk_xattr_check_freemap(ds->sc, &leafhdr)) in xchk_xattr_block()
471 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
474 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
483 struct xchk_da_btree *ds, in xchk_xattr_rec() argument
486 struct xfs_mount *mp = ds->state->mp; in xchk_xattr_rec()
487 struct xfs_da_state_blk *blk = &ds->state->path.blk[level]; in xchk_xattr_rec()
503 error = xchk_xattr_block(ds, level); in xchk_xattr_rec()
506 if (ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_xattr_rec()
510 error = xchk_da_btree_hash(ds, level, &ent->hashval); in xchk_xattr_rec()
519 xchk_da_set_corrupt(ds, level); in xchk_xattr_rec()
526 xchk_da_set_corrupt(ds, level); in xchk_xattr_rec()
530 xchk_da_set_corrupt(ds, level); in xchk_xattr_rec()
538 xchk_da_set_corrupt(ds, level); in xchk_xattr_rec()
549 xchk_da_set_corrupt(ds, level); in xchk_xattr_rec()
553 xchk_da_set_corrupt(ds, level); in xchk_xattr_rec()
561 xchk_da_set_corrupt(ds, level); in xchk_xattr_rec()