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