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,
1305 struct xfs_btree_cur *rcur, in xfs_refcount_finish_one_cleanup() argument
1310 if (rcur == NULL) in xfs_refcount_finish_one_cleanup()
1312 agbp = rcur->bc_ag.agbp; in xfs_refcount_finish_one_cleanup()
1313 xfs_btree_del_cursor(rcur, error); in xfs_refcount_finish_one_cleanup()
1357 struct xfs_btree_cur *rcur; in xfs_refcount_finish_one() local
1377 rcur = *pcur; in xfs_refcount_finish_one()
1378 if (rcur != NULL && rcur->bc_ag.pag != ri->ri_pag) { in xfs_refcount_finish_one()
1379 nr_ops = rcur->bc_ag.refc.nr_ops; in xfs_refcount_finish_one()
1380 shape_changes = rcur->bc_ag.refc.shape_changes; in xfs_refcount_finish_one()
1381 xfs_refcount_finish_one_cleanup(tp, rcur, 0); in xfs_refcount_finish_one()
1382 rcur = NULL; in xfs_refcount_finish_one()
1385 if (rcur == NULL) { in xfs_refcount_finish_one()
1391 rcur = xfs_refcountbt_init_cursor(mp, tp, agbp, ri->ri_pag); in xfs_refcount_finish_one()
1392 rcur->bc_ag.refc.nr_ops = nr_ops; in xfs_refcount_finish_one()
1393 rcur->bc_ag.refc.shape_changes = shape_changes; in xfs_refcount_finish_one()
1395 *pcur = rcur; in xfs_refcount_finish_one()
1399 error = xfs_refcount_adjust(rcur, &bno, &ri->ri_blockcount, in xfs_refcount_finish_one()
1404 error = xfs_refcount_continue_op(rcur, ri, bno); in xfs_refcount_finish_one()
1407 error = xfs_refcount_adjust(rcur, &bno, &ri->ri_blockcount, in xfs_refcount_finish_one()
1412 error = xfs_refcount_continue_op(rcur, ri, bno); in xfs_refcount_finish_one()
1415 error = __xfs_refcount_cow_alloc(rcur, bno, ri->ri_blockcount); in xfs_refcount_finish_one()
1421 error = __xfs_refcount_cow_free(rcur, bno, ri->ri_blockcount); in xfs_refcount_finish_one()
1812 struct xfs_btree_cur *rcur, in __xfs_refcount_cow_alloc() argument
1816 trace_xfs_refcount_cow_increase(rcur->bc_mp, rcur->bc_ag.pag->pag_agno, in __xfs_refcount_cow_alloc()
1820 return xfs_refcount_adjust_cow(rcur, agbno, aglen, in __xfs_refcount_cow_alloc()
1829 struct xfs_btree_cur *rcur, in __xfs_refcount_cow_free() argument
1833 trace_xfs_refcount_cow_decrease(rcur->bc_mp, rcur->bc_ag.pag->pag_agno, in __xfs_refcount_cow_free()
1837 return xfs_refcount_adjust_cow(rcur, agbno, aglen, in __xfs_refcount_cow_free()