Lines Matching refs:error

127 	int			error;
130 error = xrep_setup_xfbtree(sc, descr);
132 return error;
142 int error;
148 error = xfs_alloc_has_records(sc->sa.bno_cur, rec->rc_startblock,
150 if (error)
151 return error;
156 error = xfs_ialloc_has_inodes_at_extent(sc->sa.ino_cur,
158 if (error)
159 return error;
181 int error = 0;
183 if (xchk_should_terminate(sc, &error))
184 return error;
188 error = xrep_refc_check_ext(rr->sc, &irec);
189 if (error)
190 return error;
242 int error = 0;
253 if (xchk_should_terminate(rr->sc, &error))
254 return error;
256 error = xfs_btree_increment(cur, 0, &have_gt);
257 if (error)
258 return error;
262 error = xfs_rmap_get_rec(cur, rmap, &have_gt);
263 if (error)
264 return error;
271 error = xrep_refc_stash_cow(rr, rmap->rm_startblock,
273 if (error)
274 return error;
278 error = xagb_bitmap_set(&rr->old_refcountbt_blocks,
281 if (error)
282 return error;
335 int error;
337 error = xfarray_sort(rr->refcount_records, xrep_refc_extent_cmp,
339 if (error)
340 return error;
343 if (xchk_should_terminate(rr->sc, &error))
344 return error;
346 error = xfarray_load(rr->refcount_records, cur, &irec);
347 if (error)
348 return error;
364 return error;
383 int error;
386 error = rcbag_add(rcstack, rr->sc->tp, rmap);
387 if (error)
388 return error;
390 error = xrep_refc_walk_rmaps(rr, rmap, have);
391 if (error)
392 return error;
395 error = xfs_btree_decrement(sc->sa.rmap_cur, 0, &have_gt);
396 if (error)
397 return error;
418 int error;
427 error = rcbag_init(sc->mp, sc->xmbtp, &rcstack);
428 if (error)
432 error = xfs_btree_goto_left_edge(sc->sa.rmap_cur);
433 if (error)
441 error = xrep_refc_walk_rmaps(rr, &rmap, &have);
442 if (error)
447 error = xrep_refc_push_rmaps_at(rr, rcstack, sbno, &rmap,
449 if (error)
453 error = rcbag_next_edge(rcstack, sc->tp, &rmap, have, &nbno);
454 if (error)
463 error = rcbag_remove_ending_at(rcstack, sc->tp, nbno);
464 if (error)
468 error = xrep_refc_walk_rmaps(rr, &rmap, &have);
469 if (error)
472 error = xrep_refc_push_rmaps_at(rr, rcstack,
474 if (error)
482 error = xrep_refc_stash(rr,
486 if (error)
499 error = rcbag_next_edge(rcstack, sc->tp, &rmap, have,
501 if (error)
513 return error;
529 int error;
532 error = xfarray_load(rr->refcount_records, rr->array_cur++,
534 if (error)
535 return error;
594 int error;
596 error = xrep_refc_sort_records(rr);
597 if (error)
598 return error;
615 error = xfs_btree_bload_compute_geometry(refc_cur,
618 if (error)
622 if (xchk_should_terminate(sc, &error))
626 error = xrep_newbt_alloc_blocks(&rr->new_btree,
628 if (error)
641 error = xfs_btree_bload(refc_cur, &rr->new_btree.bload, rr);
642 if (error)
653 error = xrep_refc_reset_counters(rr);
654 if (error)
658 error = xrep_newbt_commit(&rr->new_btree);
659 if (error)
660 return error;
667 xfs_btree_del_cursor(refc_cur, error);
670 return error;
683 int error;
686 error = xrep_reap_agblocks(sc, &rr->old_refcountbt_blocks,
688 if (error)
689 return error;
709 int error;
722 error = xfarray_create(descr, mp->m_sb.sb_agblocks,
726 if (error)
731 error = xrep_refc_find_refcounts(rr);
732 if (error)
736 error = xrep_refc_build_new_tree(rr);
737 if (error)
741 error = xrep_refc_remove_old_tree(rr);
742 if (error)
750 return error;