Lines Matching refs:error
189 int error; in xfs_iwalk_ag_recs() local
200 error = iwag->inobt_walk_fn(mp, tp, pag->pag_agno, irec, in xfs_iwalk_ag_recs()
202 if (error) in xfs_iwalk_ag_recs()
203 return error; in xfs_iwalk_ag_recs()
220 error = iwag->iwalk_fn(mp, tp, ino, iwag->data); in xfs_iwalk_ag_recs()
221 if (error) in xfs_iwalk_ag_recs()
222 return error; in xfs_iwalk_ag_recs()
235 int error) in xfs_iwalk_del_inobt() argument
238 xfs_btree_del_cursor(*curpp, error); in xfs_iwalk_del_inobt()
274 int error; in xfs_iwalk_ag_start() local
278 error = xfs_inobt_cur(pag, tp, XFS_BTNUM_INO, curpp, agi_bpp); in xfs_iwalk_ag_start()
279 if (error) in xfs_iwalk_ag_start()
280 return error; in xfs_iwalk_ag_start()
293 error = xfs_inobt_lookup(*curpp, agino, XFS_LOOKUP_LE, has_more); in xfs_iwalk_ag_start()
294 if (error) in xfs_iwalk_ag_start()
295 return error; in xfs_iwalk_ag_start()
306 error = xfs_inobt_get_rec(*curpp, irec, has_more); in xfs_iwalk_ag_start()
307 if (error) in xfs_iwalk_ag_start()
308 return error; in xfs_iwalk_ag_start()
360 int error; in xfs_iwalk_run_callbacks() local
376 error = xfs_iwalk_ag_recs(iwag); in xfs_iwalk_run_callbacks()
377 if (error) in xfs_iwalk_run_callbacks()
378 return error; in xfs_iwalk_run_callbacks()
387 error = xfs_trans_alloc_empty(mp, &iwag->tp); in xfs_iwalk_run_callbacks()
388 if (error) in xfs_iwalk_run_callbacks()
389 return error; in xfs_iwalk_run_callbacks()
393 error = xfs_inobt_cur(iwag->pag, iwag->tp, XFS_BTNUM_INO, curpp, in xfs_iwalk_run_callbacks()
395 if (error) in xfs_iwalk_run_callbacks()
396 return error; in xfs_iwalk_run_callbacks()
412 int error = 0; in xfs_iwalk_ag() local
417 error = xfs_iwalk_ag_start(iwag, agino, &cur, &agi_bp, &has_more); in xfs_iwalk_ag()
419 while (!error && has_more) { in xfs_iwalk_ag()
429 error = xfs_inobt_get_rec(cur, irec, &has_more); in xfs_iwalk_ag()
430 if (error || !has_more) in xfs_iwalk_ag()
437 error = -EFSCORRUPTED; in xfs_iwalk_ag()
444 error = xfs_btree_increment(cur, 0, &has_more); in xfs_iwalk_ag()
445 if (error) in xfs_iwalk_ag()
462 error = xfs_btree_increment(cur, 0, &has_more); in xfs_iwalk_ag()
463 if (error || !has_more) in xfs_iwalk_ag()
475 error = xfs_iwalk_run_callbacks(iwag, &cur, &agi_bp, &has_more); in xfs_iwalk_ag()
478 if (iwag->nr_recs == 0 || error) in xfs_iwalk_ag()
482 error = xfs_iwalk_run_callbacks(iwag, &cur, &agi_bp, &has_more); in xfs_iwalk_ag()
485 xfs_iwalk_del_inobt(iwag->tp, &cur, &agi_bp, error); in xfs_iwalk_ag()
486 return error; in xfs_iwalk_ag()
573 int error; in xfs_iwalk() local
578 error = xfs_iwalk_alloc(&iwag); in xfs_iwalk()
579 if (error) in xfs_iwalk()
580 return error; in xfs_iwalk()
584 error = xfs_iwalk_ag(&iwag); in xfs_iwalk()
585 if (error) in xfs_iwalk()
596 return error; in xfs_iwalk()
606 int error = 0; in xfs_iwalk_ag_work() local
612 error = xfs_iwalk_alloc(iwag); in xfs_iwalk_ag_work()
613 if (error) in xfs_iwalk_ag_work()
619 error = xfs_trans_alloc_empty(mp, &iwag->tp); in xfs_iwalk_ag_work()
620 if (error) in xfs_iwalk_ag_work()
624 error = xfs_iwalk_ag(iwag); in xfs_iwalk_ag_work()
631 return error; in xfs_iwalk_ag_work()
651 int error; in xfs_iwalk_threaded() local
656 error = xfs_pwork_init(mp, &pctl, xfs_iwalk_ag_work, "xfs_iwalk"); in xfs_iwalk_threaded()
657 if (error) in xfs_iwalk_threaded()
658 return error; in xfs_iwalk_threaded()
757 int error; in xfs_inobt_walk() local
762 error = xfs_iwalk_alloc(&iwag); in xfs_inobt_walk()
763 if (error) in xfs_inobt_walk()
764 return error; in xfs_inobt_walk()
768 error = xfs_iwalk_ag(&iwag); in xfs_inobt_walk()
769 if (error) in xfs_inobt_walk()
780 return error; in xfs_inobt_walk()