Lines Matching refs:rcur
37 STATIC int __xfs_refcount_cow_alloc(struct xfs_btree_cur *rcur,
39 STATIC int __xfs_refcount_cow_free(struct xfs_btree_cur *rcur,
1277 struct xfs_btree_cur *rcur, in xfs_refcount_finish_one_cleanup() argument
1282 if (rcur == NULL) in xfs_refcount_finish_one_cleanup()
1284 agbp = rcur->bc_ag.agbp; in xfs_refcount_finish_one_cleanup()
1285 xfs_btree_del_cursor(rcur, error); in xfs_refcount_finish_one_cleanup()
1329 struct xfs_btree_cur *rcur; in xfs_refcount_finish_one() local
1353 rcur = *pcur; in xfs_refcount_finish_one()
1354 if (rcur != NULL && rcur->bc_ag.pag != pag) { in xfs_refcount_finish_one()
1355 nr_ops = rcur->bc_ag.refc.nr_ops; in xfs_refcount_finish_one()
1356 shape_changes = rcur->bc_ag.refc.shape_changes; in xfs_refcount_finish_one()
1357 xfs_refcount_finish_one_cleanup(tp, rcur, 0); in xfs_refcount_finish_one()
1358 rcur = NULL; in xfs_refcount_finish_one()
1361 if (rcur == NULL) { in xfs_refcount_finish_one()
1367 rcur = xfs_refcountbt_init_cursor(mp, tp, agbp, pag); in xfs_refcount_finish_one()
1368 rcur->bc_ag.refc.nr_ops = nr_ops; in xfs_refcount_finish_one()
1369 rcur->bc_ag.refc.shape_changes = shape_changes; in xfs_refcount_finish_one()
1371 *pcur = rcur; in xfs_refcount_finish_one()
1375 error = xfs_refcount_adjust(rcur, &bno, &ri->ri_blockcount, in xfs_refcount_finish_one()
1380 error = xfs_refcount_continue_op(rcur, ri, bno); in xfs_refcount_finish_one()
1383 error = xfs_refcount_adjust(rcur, &bno, &ri->ri_blockcount, in xfs_refcount_finish_one()
1388 error = xfs_refcount_continue_op(rcur, ri, bno); in xfs_refcount_finish_one()
1391 error = __xfs_refcount_cow_alloc(rcur, bno, ri->ri_blockcount); in xfs_refcount_finish_one()
1397 error = __xfs_refcount_cow_free(rcur, bno, ri->ri_blockcount); in xfs_refcount_finish_one()
1789 struct xfs_btree_cur *rcur, in __xfs_refcount_cow_alloc() argument
1793 trace_xfs_refcount_cow_increase(rcur->bc_mp, rcur->bc_ag.pag->pag_agno, in __xfs_refcount_cow_alloc()
1797 return xfs_refcount_adjust_cow(rcur, agbno, aglen, in __xfs_refcount_cow_alloc()
1806 struct xfs_btree_cur *rcur, in __xfs_refcount_cow_free() argument
1810 trace_xfs_refcount_cow_decrease(rcur->bc_mp, rcur->bc_ag.pag->pag_agno, in __xfs_refcount_cow_free()
1814 return xfs_refcount_adjust_cow(rcur, agbno, aglen, in __xfs_refcount_cow_free()