Lines Matching refs:ds

188 	struct xchk_da_btree		*ds,  in xchk_xattr_entry()  argument
199 struct xfs_mount *mp = ds->state->mp; in xchk_xattr_entry()
207 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
211 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
217 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
228 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
234 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
237 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
239 if (!xchk_xattr_set_map(ds->sc, usedmap, nameidx, namesize)) in xchk_xattr_entry()
240 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
241 if (!(ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT)) in xchk_xattr_entry()
248 struct xchk_da_btree *ds, in xchk_xattr_block() argument
252 struct xfs_mount *mp = ds->state->mp; in xchk_xattr_block()
253 struct xfs_da_state_blk *blk = &ds->state->path.blk[level]; in xchk_xattr_block()
255 xfs_dablk_t *last_checked = ds->private; in xchk_xattr_block()
259 unsigned long *usedmap = ds->sc->buf; in xchk_xattr_block()
273 if (xfs_sb_version_hascrc(&ds->sc->mp->m_sb)) { in xchk_xattr_block()
278 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
281 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
289 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
291 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
293 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
294 if (!xchk_xattr_set_map(ds->sc, usedmap, 0, hdrsize)) in xchk_xattr_block()
295 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
297 if (ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_xattr_block()
302 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
308 if (!xchk_xattr_set_map(ds->sc, usedmap, off, in xchk_xattr_block()
310 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
315 xchk_xattr_entry(ds, level, buf_end, leaf, &leafhdr, in xchk_xattr_block()
318 if (ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_xattr_block()
322 if (!xchk_xattr_check_freemap(ds->sc, usedmap, &leafhdr)) in xchk_xattr_block()
323 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
326 xchk_da_set_corrupt(ds, level); in xchk_xattr_block()
335 struct xchk_da_btree *ds, in xchk_xattr_rec() argument
339 struct xfs_mount *mp = ds->state->mp; in xchk_xattr_rec()
352 blk = &ds->state->path.blk[level]; in xchk_xattr_rec()
355 error = xchk_xattr_block(ds, level); in xchk_xattr_rec()
358 if (ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_xattr_rec()
362 error = xchk_da_btree_hash(ds, level, &ent->hashval); in xchk_xattr_rec()
371 xchk_da_set_corrupt(ds, level); in xchk_xattr_rec()
380 xchk_da_set_corrupt(ds, level); in xchk_xattr_rec()
385 xchk_da_set_corrupt(ds, level); in xchk_xattr_rec()
393 xchk_da_set_corrupt(ds, level); in xchk_xattr_rec()
399 xchk_da_set_corrupt(ds, level); in xchk_xattr_rec()