Lines Matching refs:bs
101 struct xchk_btree *bs,
106 struct xfs_mount *mp = bs->cur->bc_mp;
107 xfs_agnumber_t agno = bs->cur->bc_ag.agno;
114 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
116 xchk_iallocbt_chunk_xref(bs->sc, irec, agino, bno, len);
146 struct xchk_btree *bs,
151 struct xfs_mount *mp = bs->cur->bc_mp;
159 if (xchk_should_terminate(bs->sc, &error))
167 fsino = XFS_AGINO_TO_INO(mp, bs->cur->bc_ag.agno, agino);
172 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
176 error = xfs_icache_inode_is_allocated(mp, bs->cur->bc_tp, fsino,
181 if (!(bs->sc->flags & XCHK_TRY_HARDER) && !freemask_ok)
195 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
209 struct xchk_btree *bs,
214 struct xfs_mount *mp = bs->cur->bc_mp;
218 xfs_agnumber_t agno = bs->cur->bc_ag.agno;
253 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
265 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
271 xchk_xref_is_not_owned_by(bs->sc, agbno,
277 xchk_xref_is_owned_by(bs->sc, agbno, M_IGEO(mp)->blocks_per_cluster,
281 error = xfs_imap_to_bp(mp, bs->cur->bc_tp, &imap, &dip, &cluster_bp, 0);
282 if (!xchk_btree_xref_process_error(bs->sc, bs->cur, 0, &error))
290 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
295 error = xchk_iallocbt_check_cluster_ifree(bs, irec,
302 xfs_trans_brelse(bs->cur->bc_tp, cluster_bp);
313 struct xchk_btree *bs,
328 cluster_base += M_IGEO(bs->sc->mp)->inodes_per_cluster) {
329 error = xchk_iallocbt_check_cluster(bs, irec, cluster_base);
345 struct xchk_btree *bs,
348 struct xfs_mount *mp = bs->sc->mp;
349 struct xchk_iallocbt *iabt = bs->private;
364 if (bs->cur->bc_btnum == XFS_BTNUM_FINO) {
370 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
381 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
397 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
402 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
421 struct xchk_btree *bs,
424 struct xfs_mount *mp = bs->cur->bc_mp;
425 struct xchk_iallocbt *iabt = bs->private;
428 xfs_agnumber_t agno = bs->cur->bc_ag.agno;
441 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
446 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
452 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
456 xchk_iallocbt_rec_alignment(bs, &irec);
457 if (bs->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT)
467 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
469 if (!xchk_iallocbt_chunk(bs, &irec, agino, len))
482 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
487 else if (!xchk_iallocbt_chunk(bs, &irec, agino, len))
495 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
498 error = xchk_iallocbt_check_clusters(bs, &irec);