Lines Matching defs:error
33 * negative error code to stop the iteration; 0 to continue the iteration; or
184 int error;
196 error = iwag->inobt_walk_fn(mp, tp, agno, irec,
198 if (error)
199 return error;
215 error = iwag->iwalk_fn(mp, tp, ino, iwag->data);
216 if (error)
217 return error;
230 int error)
233 xfs_btree_del_cursor(*curpp, error);
255 * regardless of the error status.
269 int error;
273 error = xfs_inobt_cur(mp, tp, agno, XFS_BTNUM_INO, curpp, agi_bpp);
274 if (error)
275 return error;
288 error = xfs_inobt_lookup(*curpp, agino, XFS_LOOKUP_LE, has_more);
289 if (error)
290 return error;
301 error = xfs_inobt_get_rec(*curpp, irec, has_more);
302 if (error)
303 return error;
357 int error;
368 error = xfs_iwalk_ag_recs(iwag);
369 if (error)
370 return error;
379 error = xfs_inobt_cur(mp, tp, agno, XFS_BTNUM_INO, curpp, agi_bpp);
380 if (error)
381 return error;
398 int error = 0;
403 error = xfs_iwalk_ag_start(iwag, agno, agino, &cur, &agi_bp, &has_more);
405 while (!error && has_more) {
415 error = xfs_inobt_get_rec(cur, irec, &has_more);
416 if (error || !has_more)
423 error = -EFSCORRUPTED;
430 error = xfs_btree_increment(cur, 0, &has_more);
431 if (error)
448 error = xfs_btree_increment(cur, 0, &has_more);
449 if (error || !has_more)
461 error = xfs_iwalk_run_callbacks(iwag, agno, &cur, &agi_bp,
465 if (iwag->nr_recs == 0 || error)
469 error = xfs_iwalk_run_callbacks(iwag, agno, &cur, &agi_bp, &has_more);
472 xfs_iwalk_del_inobt(tp, &cur, &agi_bp, error);
473 return error;
559 int error;
564 error = xfs_iwalk_alloc(&iwag);
565 if (error)
566 return error;
569 error = xfs_iwalk_ag(&iwag);
570 if (error)
578 return error;
588 int error = 0;
594 error = xfs_iwalk_alloc(iwag);
595 if (error)
598 error = xfs_iwalk_ag(iwag);
602 return error;
622 int error;
628 error = xfs_pwork_init(mp, &pctl, xfs_iwalk_ag_work, "xfs_iwalk",
630 if (error)
631 return error;
722 int error;
727 error = xfs_iwalk_alloc(&iwag);
728 if (error)
729 return error;
732 error = xfs_iwalk_ag(&iwag);
733 if (error)
741 return error;