Lines Matching refs:bs

100 	struct xchk_btree		*bs,  in xchk_iallocbt_chunk()  argument
105 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_iallocbt_chunk()
106 xfs_agnumber_t agno = bs->cur->bc_private.a.agno; in xchk_iallocbt_chunk()
113 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_chunk()
115 xchk_iallocbt_chunk_xref(bs->sc, irec, agino, bno, len); in xchk_iallocbt_chunk()
132 struct xchk_btree *bs, in xchk_iallocbt_check_cluster_freemask() argument
140 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_iallocbt_check_cluster_freemask()
146 if (xchk_should_terminate(bs->sc, &error)) in xchk_iallocbt_check_cluster_freemask()
153 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_check_cluster_freemask()
159 error = xfs_icache_inode_is_allocated(mp, bs->cur->bc_tp, in xchk_iallocbt_check_cluster_freemask()
164 if (!bs->sc->try_harder && !freemask_ok) in xchk_iallocbt_check_cluster_freemask()
178 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_check_cluster_freemask()
186 struct xchk_btree *bs, in xchk_iallocbt_check_freemask() argument
191 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_iallocbt_check_freemask()
213 fsino = XFS_AGINO_TO_INO(mp, bs->cur->bc_private.a.agno, agino); in xchk_iallocbt_check_freemask()
226 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_check_freemask()
232 xchk_xref_is_not_owned_by(bs->sc, agbno, in xchk_iallocbt_check_freemask()
237 xchk_xref_is_owned_by(bs->sc, agbno, blks_per_cluster, in xchk_iallocbt_check_freemask()
241 imap.im_blkno = XFS_AGB_TO_DADDR(mp, bs->cur->bc_private.a.agno, in xchk_iallocbt_check_freemask()
246 error = xfs_imap_to_bp(mp, bs->cur->bc_tp, &imap, in xchk_iallocbt_check_freemask()
248 if (!xchk_btree_xref_process_error(bs->sc, bs->cur, 0, in xchk_iallocbt_check_freemask()
254 error = xchk_iallocbt_check_cluster_freemask(bs, in xchk_iallocbt_check_freemask()
257 xfs_trans_brelse(bs->cur->bc_tp, bp); in xchk_iallocbt_check_freemask()
262 xfs_trans_brelse(bs->cur->bc_tp, bp); in xchk_iallocbt_check_freemask()
271 struct xchk_btree *bs, in xchk_iallocbt_rec() argument
274 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_iallocbt_rec()
275 xfs_filblks_t *inode_blocks = bs->private; in xchk_iallocbt_rec()
278 xfs_agnumber_t agno = bs->cur->bc_private.a.agno; in xchk_iallocbt_rec()
292 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_rec()
297 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_rec()
303 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_rec()
311 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_rec()
321 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_rec()
323 if (!xchk_iallocbt_chunk(bs, &irec, agino, len)) in xchk_iallocbt_rec()
336 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_rec()
341 else if (!xchk_iallocbt_chunk(bs, &irec, agino, len)) in xchk_iallocbt_rec()
349 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_rec()
352 error = xchk_iallocbt_check_freemask(bs, &irec); in xchk_iallocbt_rec()