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