Lines Matching defs:error
41 int error;
48 error = xfs_sb_get_secondary(mp, sc->tp, agno, &bp);
49 if (error)
50 return error;
53 if (xchk_should_terminate(sc, &error))
54 return error;
75 return error;
94 int error = 0;
96 if (xchk_should_terminate(raa->sc, &error))
97 return error;
102 return error;
159 int error;
162 error = xrep_find_ag_btree_roots(sc, agf_bp, fab, agfl_bp);
163 if (error)
164 return error;
261 int error;
266 error = xfs_alloc_query_all(cur, xrep_agf_walk_allocbt, &raa);
267 if (error)
269 error = xfs_btree_count_blocks(cur, &blocks);
270 if (error)
272 xfs_btree_del_cursor(cur, error);
280 error = xfs_btree_count_blocks(cur, &blocks);
281 if (error)
283 xfs_btree_del_cursor(cur, error);
288 error = xfs_btree_count_blocks(cur, &blocks);
289 if (error)
291 xfs_btree_del_cursor(cur, error);
301 error = xfs_btree_count_blocks(cur, &blocks);
302 if (error)
304 xfs_btree_del_cursor(cur, error);
310 xfs_btree_del_cursor(cur, error);
311 return error;
382 int error;
392 error = xfs_trans_read_buf(mp, sc->tp, mp->m_ddev_targp,
396 if (error)
397 return error;
410 error = xfs_alloc_read_agfl(sc->sa.pag, sc->tp, &agfl_bp);
411 if (error)
412 return error;
418 error = xfs_agfl_walk(sc->mp, agf_bp->b_addr, agfl_bp,
420 if (error)
421 return error;
427 error = xrep_agf_find_btrees(sc, agf_bp, fab, agfl_bp);
428 if (error)
429 return error;
432 if (xchk_should_terminate(sc, &error))
433 return error;
438 error = xrep_agf_calc_from_btrees(sc, agf_bp);
439 if (error)
449 return error;
478 int error = 0;
480 if (xchk_should_terminate(ra->sc, &error))
481 return error;
485 error = xagb_bitmap_set(ra->freesp, rec->rm_startblock,
487 if (error)
488 return error;
504 int error;
509 error = xfs_rmap_has_other_keys(ra->rmap_cur, agbno, 1,
511 if (error)
512 return error;
515 error = xagb_bitmap_set(&ra->crossed, agbno, 1);
516 if (error)
517 return error;
520 if (xchk_should_terminate(ra->sc, &error))
521 return error;
547 int error;
556 error = xfs_rmap_query_all(cur, xrep_agfl_walk_rmap, &ra);
557 xfs_btree_del_cursor(cur, error);
558 if (error)
564 error = xagb_bitmap_set_btblocks(&ra.agmetablocks, cur);
565 xfs_btree_del_cursor(cur, error);
566 if (error)
572 error = xagb_bitmap_set_btblocks(&ra.agmetablocks, cur);
573 xfs_btree_del_cursor(cur, error);
574 if (error)
581 error = xagb_bitmap_disunion(agfl_extents, &ra.agmetablocks);
582 if (error)
587 error = xagb_bitmap_walk(agfl_extents, xrep_agfl_check_extent, &ra);
588 xfs_btree_del_cursor(ra.rmap_cur, error);
589 if (error)
591 error = xagb_bitmap_disunion(agfl_extents, &ra.crossed);
592 if (error)
605 return error;
657 int error;
664 error = xagb_bitmap_set(&af->used_extents, start, agbno - 1);
665 if (error)
666 return error;
688 int error;
710 error = xagb_bitmap_disunion(agfl_extents, &af.used_extents);
711 if (error)
712 return error;
731 int error;
744 error = xfs_alloc_read_agf(sc->sa.pag, sc->tp, 0, &agf_bp);
745 if (error)
746 return error;
752 error = xfs_trans_read_buf(mp, sc->tp, mp->m_ddev_targp,
756 if (error)
757 return error;
761 error = xrep_agfl_collect_blocks(sc, agf_bp, &agfl_extents, &flcount);
762 if (error)
766 if (xchk_should_terminate(sc, &error))
775 error = xrep_agfl_init_header(sc, agfl_bp, &agfl_extents, flcount);
776 if (error)
785 error = xrep_roll_ag_trans(sc);
786 if (error)
790 error = xrep_reap_agblocks(sc, &agfl_extents, &XFS_RMAP_OINFO_AG,
794 return error;
821 int error;
824 error = xfs_alloc_read_agf(sc->sa.pag, sc->tp, 0, &agf_bp);
825 if (error)
826 return error;
829 error = xrep_find_ag_btree_roots(sc, agf_bp, fab, NULL);
830 if (error)
831 return error;
906 int error;
909 error = xfs_ialloc_count_inodes(cur, &count, &freecount);
910 if (error)
915 error = xfs_btree_count_blocks(cur, &blocks);
916 if (error)
920 xfs_btree_del_cursor(cur, error);
930 error = xfs_btree_count_blocks(cur, &blocks);
931 if (error)
933 xfs_btree_del_cursor(cur, error);
939 xfs_btree_del_cursor(cur, error);
940 return error;
992 int error;
1002 error = xfs_trans_read_buf(mp, sc->tp, mp->m_ddev_targp,
1006 if (error)
1007 return error;
1012 error = xrep_agi_find_btrees(sc, fab);
1013 if (error)
1014 return error;
1017 if (xchk_should_terminate(sc, &error))
1018 return error;
1023 error = xrep_agi_calc_from_btrees(sc, agi_bp);
1024 if (error)
1034 return error;