Lines Matching full:error

127 	int			error;  in xrep_setup_ag_refcountbt()  local
130 error = xrep_setup_xfbtree(sc, descr); in xrep_setup_ag_refcountbt()
132 return error; in xrep_setup_ag_refcountbt()
142 int error; in xrep_refc_check_ext() local
148 error = xfs_alloc_has_records(sc->sa.bno_cur, rec->rc_startblock, in xrep_refc_check_ext()
150 if (error) in xrep_refc_check_ext()
151 return error; in xrep_refc_check_ext()
156 error = xfs_ialloc_has_inodes_at_extent(sc->sa.ino_cur, in xrep_refc_check_ext()
158 if (error) in xrep_refc_check_ext()
159 return error; in xrep_refc_check_ext()
181 int error = 0; in xrep_refc_stash() local
183 if (xchk_should_terminate(sc, &error)) in xrep_refc_stash()
184 return error; in xrep_refc_stash()
188 error = xrep_refc_check_ext(rr->sc, &irec); in xrep_refc_stash()
189 if (error) in xrep_refc_stash()
190 return error; in xrep_refc_stash()
242 int error = 0; in xrep_refc_walk_rmaps() local
253 if (xchk_should_terminate(rr->sc, &error)) in xrep_refc_walk_rmaps()
254 return error; in xrep_refc_walk_rmaps()
256 error = xfs_btree_increment(cur, 0, &have_gt); in xrep_refc_walk_rmaps()
257 if (error) in xrep_refc_walk_rmaps()
258 return error; in xrep_refc_walk_rmaps()
262 error = xfs_rmap_get_rec(cur, rmap, &have_gt); in xrep_refc_walk_rmaps()
263 if (error) in xrep_refc_walk_rmaps()
264 return error; in xrep_refc_walk_rmaps()
271 error = xrep_refc_stash_cow(rr, rmap->rm_startblock, in xrep_refc_walk_rmaps()
273 if (error) in xrep_refc_walk_rmaps()
274 return error; in xrep_refc_walk_rmaps()
278 error = xagb_bitmap_set(&rr->old_refcountbt_blocks, in xrep_refc_walk_rmaps()
281 if (error) in xrep_refc_walk_rmaps()
282 return error; in xrep_refc_walk_rmaps()
335 int error; in xrep_refc_sort_records() local
337 error = xfarray_sort(rr->refcount_records, xrep_refc_extent_cmp, in xrep_refc_sort_records()
339 if (error) in xrep_refc_sort_records()
340 return error; in xrep_refc_sort_records()
343 if (xchk_should_terminate(rr->sc, &error)) in xrep_refc_sort_records()
344 return error; in xrep_refc_sort_records()
346 error = xfarray_load(rr->refcount_records, cur, &irec); in xrep_refc_sort_records()
347 if (error) in xrep_refc_sort_records()
348 return error; in xrep_refc_sort_records()
364 return error; in xrep_refc_sort_records()
383 int error; in xrep_refc_push_rmaps_at() local
386 error = rcbag_add(rcstack, rr->sc->tp, rmap); in xrep_refc_push_rmaps_at()
387 if (error) in xrep_refc_push_rmaps_at()
388 return error; in xrep_refc_push_rmaps_at()
390 error = xrep_refc_walk_rmaps(rr, rmap, have); in xrep_refc_push_rmaps_at()
391 if (error) in xrep_refc_push_rmaps_at()
392 return error; in xrep_refc_push_rmaps_at()
395 error = xfs_btree_decrement(sc->sa.rmap_cur, 0, &have_gt); in xrep_refc_push_rmaps_at()
396 if (error) in xrep_refc_push_rmaps_at()
397 return error; in xrep_refc_push_rmaps_at()
418 int error; in xrep_refc_find_refcounts() local
427 error = rcbag_init(sc->mp, sc->xmbtp, &rcstack); in xrep_refc_find_refcounts()
428 if (error) in xrep_refc_find_refcounts()
432 error = xfs_btree_goto_left_edge(sc->sa.rmap_cur); in xrep_refc_find_refcounts()
433 if (error) in xrep_refc_find_refcounts()
441 error = xrep_refc_walk_rmaps(rr, &rmap, &have); in xrep_refc_find_refcounts()
442 if (error) in xrep_refc_find_refcounts()
447 error = xrep_refc_push_rmaps_at(rr, rcstack, sbno, &rmap, in xrep_refc_find_refcounts()
449 if (error) in xrep_refc_find_refcounts()
453 error = rcbag_next_edge(rcstack, sc->tp, &rmap, have, &nbno); in xrep_refc_find_refcounts()
454 if (error) in xrep_refc_find_refcounts()
463 error = rcbag_remove_ending_at(rcstack, sc->tp, nbno); in xrep_refc_find_refcounts()
464 if (error) in xrep_refc_find_refcounts()
468 error = xrep_refc_walk_rmaps(rr, &rmap, &have); in xrep_refc_find_refcounts()
469 if (error) in xrep_refc_find_refcounts()
472 error = xrep_refc_push_rmaps_at(rr, rcstack, in xrep_refc_find_refcounts()
474 if (error) in xrep_refc_find_refcounts()
482 error = xrep_refc_stash(rr, in xrep_refc_find_refcounts()
486 if (error) in xrep_refc_find_refcounts()
499 error = rcbag_next_edge(rcstack, sc->tp, &rmap, have, in xrep_refc_find_refcounts()
501 if (error) in xrep_refc_find_refcounts()
513 return error; in xrep_refc_find_refcounts()
529 int error; in xrep_refc_get_records() local
532 error = xfarray_load(rr->refcount_records, rr->array_cur++, in xrep_refc_get_records()
534 if (error) in xrep_refc_get_records()
535 return error; in xrep_refc_get_records()
593 int error; in xrep_refc_build_new_tree() local
595 error = xrep_refc_sort_records(rr); in xrep_refc_build_new_tree()
596 if (error) in xrep_refc_build_new_tree()
597 return error; in xrep_refc_build_new_tree()
614 error = xfs_btree_bload_compute_geometry(refc_cur, in xrep_refc_build_new_tree()
617 if (error) in xrep_refc_build_new_tree()
621 if (xchk_should_terminate(sc, &error)) in xrep_refc_build_new_tree()
625 error = xrep_newbt_alloc_blocks(&rr->new_btree, in xrep_refc_build_new_tree()
627 if (error) in xrep_refc_build_new_tree()
640 error = xfs_btree_bload(refc_cur, &rr->new_btree.bload, rr); in xrep_refc_build_new_tree()
641 if (error) in xrep_refc_build_new_tree()
652 error = xrep_refc_reset_counters(rr); in xrep_refc_build_new_tree()
653 if (error) in xrep_refc_build_new_tree()
657 error = xrep_newbt_commit(&rr->new_btree); in xrep_refc_build_new_tree()
658 if (error) in xrep_refc_build_new_tree()
659 return error; in xrep_refc_build_new_tree()
666 xfs_btree_del_cursor(refc_cur, error); in xrep_refc_build_new_tree()
669 return error; in xrep_refc_build_new_tree()
682 int error; in xrep_refc_remove_old_tree() local
685 error = xrep_reap_agblocks(sc, &rr->old_refcountbt_blocks, in xrep_refc_remove_old_tree()
687 if (error) in xrep_refc_remove_old_tree()
688 return error; in xrep_refc_remove_old_tree()
708 int error; in xrep_refcountbt() local
721 error = xfarray_create(descr, mp->m_sb.sb_agblocks, in xrep_refcountbt()
725 if (error) in xrep_refcountbt()
730 error = xrep_refc_find_refcounts(rr); in xrep_refcountbt()
731 if (error) in xrep_refcountbt()
735 error = xrep_refc_build_new_tree(rr); in xrep_refcountbt()
736 if (error) in xrep_refcountbt()
740 error = xrep_refc_remove_old_tree(rr); in xrep_refcountbt()
741 if (error) in xrep_refcountbt()
749 return error; in xrep_refcountbt()