Lines Matching refs:bs
254 struct xchk_btree *bs,
259 struct xfs_scrub *sc = bs->sc;
260 struct xfs_mount *mp = bs->cur->bc_mp;
261 struct xfs_perag *pag = bs->cur->bc_ag.pag;
269 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
271 if (bs->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT)
301 struct xchk_btree *bs,
306 struct xfs_mount *mp = bs->cur->bc_mp;
314 if (xchk_should_terminate(bs->sc, &error))
322 fsino = XFS_AGINO_TO_INO(mp, bs->cur->bc_ag.pag->pag_agno, agino);
327 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
331 error = xchk_inode_is_allocated(bs->sc, agino, &ino_inuse);
335 if (!(bs->sc->flags & XCHK_TRY_HARDER) && !freemask_ok)
349 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
363 struct xchk_btree *bs,
368 struct xfs_mount *mp = bs->cur->bc_mp;
371 xfs_agnumber_t agno = bs->cur->bc_ag.pag->pag_agno;
406 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
418 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
424 xchk_xref_is_not_owned_by(bs->sc, agbno,
430 xchk_xref_is_only_owned_by(bs->sc, agbno, M_IGEO(mp)->blocks_per_cluster,
434 error = xfs_imap_to_bp(mp, bs->cur->bc_tp, &imap, &cluster_bp);
435 if (!xchk_btree_xref_process_error(bs->sc, bs->cur, 0, &error))
443 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
448 error = xchk_iallocbt_check_cluster_ifree(bs, irec,
455 xfs_trans_brelse(bs->cur->bc_tp, cluster_bp);
466 struct xchk_btree *bs,
481 cluster_base += M_IGEO(bs->sc->mp)->inodes_per_cluster) {
482 error = xchk_iallocbt_check_cluster(bs, irec, cluster_base);
498 struct xchk_btree *bs,
501 struct xfs_mount *mp = bs->sc->mp;
502 struct xchk_iallocbt *iabt = bs->private;
517 if (bs->cur->bc_btnum == XFS_BTNUM_FINO) {
523 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
534 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
550 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
555 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
574 struct xchk_btree *bs,
577 struct xfs_mount *mp = bs->cur->bc_mp;
578 struct xchk_iallocbt *iabt = bs->private;
588 if (xfs_inobt_check_irec(bs->cur, &irec) != NULL) {
589 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
595 xchk_iallocbt_rec_alignment(bs, &irec);
596 if (bs->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT)
604 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
606 if (!xchk_iallocbt_chunk(bs, &irec, agino,
618 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
623 else if (!xchk_iallocbt_chunk(bs, &irec, agino,
632 xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
635 if (bs->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT)
638 error = xchk_iallocbt_check_clusters(bs, &irec);