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,
1167 struct xfs_btree_cur *rcur, in xfs_refcount_finish_one_cleanup() argument
1172 if (rcur == NULL) in xfs_refcount_finish_one_cleanup()
1174 agbp = rcur->bc_ag.agbp; in xfs_refcount_finish_one_cleanup()
1175 xfs_btree_del_cursor(rcur, error); in xfs_refcount_finish_one_cleanup()
1224 struct xfs_btree_cur *rcur; in xfs_refcount_finish_one() local
1249 rcur = *pcur; in xfs_refcount_finish_one()
1250 if (rcur != NULL && rcur->bc_ag.pag != pag) { in xfs_refcount_finish_one()
1251 nr_ops = rcur->bc_ag.refc.nr_ops; in xfs_refcount_finish_one()
1252 shape_changes = rcur->bc_ag.refc.shape_changes; in xfs_refcount_finish_one()
1253 xfs_refcount_finish_one_cleanup(tp, rcur, 0); in xfs_refcount_finish_one()
1254 rcur = NULL; in xfs_refcount_finish_one()
1257 if (rcur == NULL) { in xfs_refcount_finish_one()
1263 rcur = xfs_refcountbt_init_cursor(mp, tp, agbp, pag); in xfs_refcount_finish_one()
1264 rcur->bc_ag.refc.nr_ops = nr_ops; in xfs_refcount_finish_one()
1265 rcur->bc_ag.refc.shape_changes = shape_changes; in xfs_refcount_finish_one()
1267 *pcur = rcur; in xfs_refcount_finish_one()
1271 error = xfs_refcount_adjust(rcur, bno, blockcount, &new_agbno, in xfs_refcount_finish_one()
1276 error = xfs_refcount_continue_op(rcur, startblock, in xfs_refcount_finish_one()
1280 error = xfs_refcount_adjust(rcur, bno, blockcount, &new_agbno, in xfs_refcount_finish_one()
1285 error = xfs_refcount_continue_op(rcur, startblock, in xfs_refcount_finish_one()
1291 error = __xfs_refcount_cow_alloc(rcur, bno, blockcount); in xfs_refcount_finish_one()
1296 error = __xfs_refcount_cow_free(rcur, bno, blockcount); in xfs_refcount_finish_one()
1685 struct xfs_btree_cur *rcur, in __xfs_refcount_cow_alloc() argument
1689 trace_xfs_refcount_cow_increase(rcur->bc_mp, rcur->bc_ag.pag->pag_agno, in __xfs_refcount_cow_alloc()
1693 return xfs_refcount_adjust_cow(rcur, agbno, aglen, in __xfs_refcount_cow_alloc()
1702 struct xfs_btree_cur *rcur, in __xfs_refcount_cow_free() argument
1706 trace_xfs_refcount_cow_decrease(rcur->bc_mp, rcur->bc_ag.pag->pag_agno, in __xfs_refcount_cow_free()
1710 return xfs_refcount_adjust_cow(rcur, agbno, aglen, in __xfs_refcount_cow_free()