Lines Matching refs:rcstack
376 struct rcbag *rcstack, in xrep_refc_push_rmaps_at() argument
386 error = rcbag_add(rcstack, rr->sc->tp, rmap); in xrep_refc_push_rmaps_at()
412 struct rcbag *rcstack; in xrep_refc_find_refcounts() local
427 error = rcbag_init(sc->mp, sc->xmbtp, &rcstack); in xrep_refc_find_refcounts()
447 error = xrep_refc_push_rmaps_at(rr, rcstack, sbno, &rmap, in xrep_refc_find_refcounts()
453 error = rcbag_next_edge(rcstack, sc->tp, &rmap, have, &nbno); in xrep_refc_find_refcounts()
458 old_stack_height = rcbag_count(rcstack); in xrep_refc_find_refcounts()
461 while (rcbag_count(rcstack) > 0) { in xrep_refc_find_refcounts()
463 error = rcbag_remove_ending_at(rcstack, sc->tp, nbno); in xrep_refc_find_refcounts()
472 error = xrep_refc_push_rmaps_at(rr, rcstack, in xrep_refc_find_refcounts()
480 if (rcbag_count(rcstack) != old_stack_height) { in xrep_refc_find_refcounts()
493 if (rcbag_count(rcstack) == 0) in xrep_refc_find_refcounts()
495 old_stack_height = rcbag_count(rcstack); in xrep_refc_find_refcounts()
499 error = rcbag_next_edge(rcstack, sc->tp, &rmap, have, in xrep_refc_find_refcounts()
508 ASSERT(rcbag_count(rcstack) == 0); in xrep_refc_find_refcounts()
510 rcbag_free(&rcstack); in xrep_refc_find_refcounts()