Lines Matching refs:rcur
34 STATIC int __xfs_refcount_cow_alloc(struct xfs_btree_cur *rcur,
36 STATIC int __xfs_refcount_cow_free(struct xfs_btree_cur *rcur,
1056 struct xfs_btree_cur *rcur, in xfs_refcount_finish_one_cleanup() argument
1061 if (rcur == NULL) in xfs_refcount_finish_one_cleanup()
1063 agbp = rcur->bc_private.a.agbp; in xfs_refcount_finish_one_cleanup()
1064 xfs_btree_del_cursor(rcur, error); in xfs_refcount_finish_one_cleanup()
1087 struct xfs_btree_cur *rcur; in xfs_refcount_finish_one() local
1112 rcur = *pcur; in xfs_refcount_finish_one()
1113 if (rcur != NULL && rcur->bc_private.a.agno != agno) { in xfs_refcount_finish_one()
1114 nr_ops = rcur->bc_private.a.priv.refc.nr_ops; in xfs_refcount_finish_one()
1115 shape_changes = rcur->bc_private.a.priv.refc.shape_changes; in xfs_refcount_finish_one()
1116 xfs_refcount_finish_one_cleanup(tp, rcur, 0); in xfs_refcount_finish_one()
1117 rcur = NULL; in xfs_refcount_finish_one()
1120 if (rcur == NULL) { in xfs_refcount_finish_one()
1128 rcur = xfs_refcountbt_init_cursor(mp, tp, agbp, agno); in xfs_refcount_finish_one()
1129 if (!rcur) { in xfs_refcount_finish_one()
1133 rcur->bc_private.a.priv.refc.nr_ops = nr_ops; in xfs_refcount_finish_one()
1134 rcur->bc_private.a.priv.refc.shape_changes = shape_changes; in xfs_refcount_finish_one()
1136 *pcur = rcur; in xfs_refcount_finish_one()
1140 error = xfs_refcount_adjust(rcur, bno, blockcount, &new_agbno, in xfs_refcount_finish_one()
1145 error = xfs_refcount_adjust(rcur, bno, blockcount, &new_agbno, in xfs_refcount_finish_one()
1152 error = __xfs_refcount_cow_alloc(rcur, bno, blockcount); in xfs_refcount_finish_one()
1157 error = __xfs_refcount_cow_free(rcur, bno, blockcount); in xfs_refcount_finish_one()
1513 struct xfs_btree_cur *rcur, in __xfs_refcount_cow_alloc() argument
1517 trace_xfs_refcount_cow_increase(rcur->bc_mp, rcur->bc_private.a.agno, in __xfs_refcount_cow_alloc()
1521 return xfs_refcount_adjust_cow(rcur, agbno, aglen, in __xfs_refcount_cow_alloc()
1530 struct xfs_btree_cur *rcur, in __xfs_refcount_cow_free() argument
1534 trace_xfs_refcount_cow_decrease(rcur->bc_mp, rcur->bc_private.a.agno, in __xfs_refcount_cow_free()
1538 return xfs_refcount_adjust_cow(rcur, agbno, aglen, in __xfs_refcount_cow_free()