Lines Matching refs:rcur
38 STATIC int __xfs_refcount_cow_alloc(struct xfs_btree_cur *rcur,
40 STATIC int __xfs_refcount_cow_free(struct xfs_btree_cur *rcur,
1327 struct xfs_btree_cur *rcur,
1332 if (rcur == NULL)
1334 agbp = rcur->bc_ag.agbp;
1335 xfs_btree_del_cursor(rcur, error);
1381 struct xfs_btree_cur *rcur;
1401 rcur = *pcur;
1402 if (rcur != NULL && rcur->bc_ag.pag != ri->ri_pag) {
1403 nr_ops = rcur->bc_refc.nr_ops;
1404 shape_changes = rcur->bc_refc.shape_changes;
1405 xfs_refcount_finish_one_cleanup(tp, rcur, 0);
1406 rcur = NULL;
1409 if (rcur == NULL) {
1415 rcur = xfs_refcountbt_init_cursor(mp, tp, agbp, ri->ri_pag);
1416 rcur->bc_refc.nr_ops = nr_ops;
1417 rcur->bc_refc.shape_changes = shape_changes;
1419 *pcur = rcur;
1423 error = xfs_refcount_adjust(rcur, &bno, &ri->ri_blockcount,
1428 error = xfs_refcount_continue_op(rcur, ri, bno);
1431 error = xfs_refcount_adjust(rcur, &bno, &ri->ri_blockcount,
1436 error = xfs_refcount_continue_op(rcur, ri, bno);
1439 error = __xfs_refcount_cow_alloc(rcur, bno, ri->ri_blockcount);
1445 error = __xfs_refcount_cow_free(rcur, bno, ri->ri_blockcount);
1846 struct xfs_btree_cur *rcur,
1850 trace_xfs_refcount_cow_increase(rcur->bc_mp, rcur->bc_ag.pag->pag_agno,
1854 return xfs_refcount_adjust_cow(rcur, agbno, aglen,
1863 struct xfs_btree_cur *rcur,
1867 trace_xfs_refcount_cow_decrease(rcur->bc_mp, rcur->bc_ag.pag->pag_agno,
1871 return xfs_refcount_adjust_cow(rcur, agbno, aglen,