• Home
  • Raw
  • Download

Lines Matching refs:bs

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