Lines Matching refs:tp

132 		xfs_trans_bhold(sc->tp, sc->sa.agi_bp);  in xrep_roll_ag_trans()
134 xfs_trans_bhold(sc->tp, sc->sa.agf_bp); in xrep_roll_ag_trans()
136 xfs_trans_bhold(sc->tp, sc->sa.agfl_bp); in xrep_roll_ag_trans()
139 error = xfs_trans_roll(&sc->tp); in xrep_roll_ag_trans()
145 xfs_trans_bjoin(sc->tp, sc->sa.agi_bp); in xrep_roll_ag_trans()
147 xfs_trans_bjoin(sc->tp, sc->sa.agf_bp); in xrep_roll_ag_trans()
149 xfs_trans_bjoin(sc->tp, sc->sa.agfl_bp); in xrep_roll_ag_trans()
160 xfs_trans_bhold_release(sc->tp, sc->sa.agi_bp); in xrep_roll_ag_trans()
162 xfs_trans_bhold_release(sc->tp, sc->sa.agf_bp); in xrep_roll_ag_trans()
164 xfs_trans_bhold_release(sc->tp, sc->sa.agfl_bp); in xrep_roll_ag_trans()
312 error = xfs_alloc_get_freelist(sc->tp, sc->sa.agf_bp, &bno, 1); in xrep_alloc_ag_block()
327 args.tp = sc->tp; in xrep_alloc_ag_block()
357 struct xfs_trans *tp = sc->tp; in xrep_init_btblock() local
365 bp = xfs_trans_get_buf(tp, mp->m_ddev_targp, XFS_FSB_TO_DADDR(mp, fsb), in xrep_init_btblock()
369 xfs_trans_buf_set_type(tp, bp, XFS_BLFT_BTREE_BUF); in xrep_init_btblock()
370 xfs_trans_log_buf(tp, bp, 0, bp->b_length); in xrep_init_btblock()
472 xfs_trans_bjoin(sc->tp, bp); in xrep_invalidate_blocks()
473 xfs_trans_binval(sc->tp, bp); in xrep_invalidate_blocks()
489 args.tp = sc->tp; in xrep_fix_freelist()
520 error = xfs_rmap_alloc(sc->tp, sc->sa.agf_bp, sc->sa.agno, agbno, 1, in xrep_put_freelist()
526 error = xfs_alloc_put_freelist(sc->tp, sc->sa.agf_bp, sc->sa.agfl_bp, in xrep_put_freelist()
530 xfs_extent_busy_insert(sc->tp, sc->sa.agno, agbno, 1, in xrep_put_freelist()
560 error = xfs_alloc_read_agf(sc->mp, sc->tp, agno, 0, &agf_bp); in xrep_reap_block()
568 cur = xfs_rmapbt_init_cursor(sc->mp, sc->tp, agf_bp, agno); in xrep_reap_block()
590 error = xfs_rmap_free(sc->tp, agf_bp, agno, agbno, 1, oinfo); in xrep_reap_block()
594 error = xfs_free_extent(sc->tp, fsbno, 1, oinfo, resv); in xrep_reap_block()
596 xfs_trans_brelse(sc->tp, agf_bp); in xrep_reap_block()
601 return xfs_trans_roll_inode(&sc->tp, sc->ip); in xrep_reap_block()
606 xfs_trans_brelse(sc->tp, agf_bp); in xrep_reap_block()
720 error = xfs_trans_read_buf(mp, ri->sc->tp, mp->m_ddev_targp, daddr, in xrep_findroot_block()
754 xfs_trans_brelse(ri->sc->tp, bp); in xrep_findroot_block()
825 cur = xfs_rmapbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.agno); in xrep_find_ag_btree_roots()
848 xfs_log_sb(sc->tp); in xrep_force_quotacheck()