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,
1111 struct xfs_btree_cur *rcur, in xfs_refcount_finish_one_cleanup() argument
1116 if (rcur == NULL) in xfs_refcount_finish_one_cleanup()
1118 agbp = rcur->bc_ag.agbp; in xfs_refcount_finish_one_cleanup()
1119 xfs_btree_del_cursor(rcur, error); in xfs_refcount_finish_one_cleanup()
1142 struct xfs_btree_cur *rcur; in xfs_refcount_finish_one() local
1167 rcur = *pcur; in xfs_refcount_finish_one()
1168 if (rcur != NULL && rcur->bc_ag.agno != agno) { in xfs_refcount_finish_one()
1169 nr_ops = rcur->bc_ag.refc.nr_ops; in xfs_refcount_finish_one()
1170 shape_changes = rcur->bc_ag.refc.shape_changes; in xfs_refcount_finish_one()
1171 xfs_refcount_finish_one_cleanup(tp, rcur, 0); in xfs_refcount_finish_one()
1172 rcur = NULL; in xfs_refcount_finish_one()
1175 if (rcur == NULL) { in xfs_refcount_finish_one()
1181 rcur = xfs_refcountbt_init_cursor(mp, tp, agbp, agno); in xfs_refcount_finish_one()
1182 if (!rcur) { in xfs_refcount_finish_one()
1186 rcur->bc_ag.refc.nr_ops = nr_ops; in xfs_refcount_finish_one()
1187 rcur->bc_ag.refc.shape_changes = shape_changes; in xfs_refcount_finish_one()
1189 *pcur = rcur; in xfs_refcount_finish_one()
1193 error = xfs_refcount_adjust(rcur, bno, blockcount, &new_agbno, in xfs_refcount_finish_one()
1198 error = xfs_refcount_adjust(rcur, bno, blockcount, &new_agbno, in xfs_refcount_finish_one()
1205 error = __xfs_refcount_cow_alloc(rcur, bno, blockcount); in xfs_refcount_finish_one()
1210 error = __xfs_refcount_cow_free(rcur, bno, blockcount); in xfs_refcount_finish_one()
1588 struct xfs_btree_cur *rcur, in __xfs_refcount_cow_alloc() argument
1592 trace_xfs_refcount_cow_increase(rcur->bc_mp, rcur->bc_ag.agno, in __xfs_refcount_cow_alloc()
1596 return xfs_refcount_adjust_cow(rcur, agbno, aglen, in __xfs_refcount_cow_alloc()
1605 struct xfs_btree_cur *rcur, in __xfs_refcount_cow_free() argument
1609 trace_xfs_refcount_cow_decrease(rcur->bc_mp, rcur->bc_ag.agno, in __xfs_refcount_cow_free()
1613 return xfs_refcount_adjust_cow(rcur, agbno, aglen, in __xfs_refcount_cow_free()