Lines Matching defs:error

51 	int			error;
56 error = xrep_setup_nlinks(sc);
57 if (error)
58 return error;
126 int error;
131 error = xfarray_load_sparse(xnc->nlinks, ino, &nl);
132 if (error)
133 return error;
143 error = xfarray_store(xnc->nlinks, ino, &nl);
144 if (error == -EFBIG) {
150 error = -ECANCELED;
152 return error;
167 int error;
188 error = xchk_nlinks_update_incore(xnc, p->ip->i_ino, p->delta,
190 if (!error && S_ISDIR(VFS_IC(p->ip)->i_mode))
191 error = xchk_nlinks_update_incore(xnc, p->dp->i_ino, 0,
194 if (error)
205 error = xchk_nlinks_update_incore(xnc, p->dp->i_ino, 0,
208 if (error)
231 int error;
235 error = -ECANCELED;
247 error = -ECANCELED;
253 error = -ECANCELED;
260 error = -ECANCELED;
283 error = xchk_nlinks_update_incore(xnc, ino, 1, 0, 0);
285 error = xchk_nlinks_update_incore(xnc, ino, 0, 1, 0);
287 error = 0;
288 if (error)
297 error = xchk_nlinks_update_incore(xnc, ino, 1, 0, 0);
298 if (error)
307 error = xchk_nlinks_update_incore(xnc, dp->i_ino, 0, 0, 1);
308 if (error)
321 return error;
343 int error;
348 error = -ECANCELED;
355 error = xfs_parent_from_attr(sc->mp, attr_flags, name, namelen, value,
357 if (error)
358 return error;
364 error = xchk_nlinks_update_incore(xnc, parent_ino, 0, 1, 0);
365 if (error)
376 return error;
387 int error = 0;
413 error = -EBUSY;
417 error = xchk_dir_walk(sc, dp, xchk_nlinks_collect_dirent, xnc);
418 if (error == -ECANCELED) {
419 error = 0;
422 if (error)
433 error = -EBUSY;
437 error = xchk_xattr_walk(sc, dp, xchk_nlinks_collect_pptr, NULL,
439 if (error == -ECANCELED) {
440 error = 0;
443 if (error)
456 return error;
478 int error = -ECANCELED;
485 error = xchk_nlinks_collect_metafile(xnc, mp->m_sb.sb_rbmino);
486 if (error)
489 error = xchk_nlinks_collect_metafile(xnc, mp->m_sb.sb_rsumino);
490 if (error)
493 error = xchk_nlinks_collect_metafile(xnc, mp->m_sb.sb_uquotino);
494 if (error)
497 error = xchk_nlinks_collect_metafile(xnc, mp->m_sb.sb_gquotino);
498 if (error)
501 error = xchk_nlinks_collect_metafile(xnc, mp->m_sb.sb_pquotino);
502 if (error)
513 return error;
535 int error;
538 error = xchk_nlinks_collect_metafiles(xnc);
539 if (error)
540 return error;
558 error = xchk_trans_alloc_empty(sc);
559 if (error)
560 return error;
562 while ((error = xchk_iscan_iter(&xnc->collect_iscan, &ip)) == 1) {
564 error = xchk_nlinks_collect_dir(xnc, ip);
566 error = xchk_nlinks_collect_file(xnc, ip);
568 if (error)
571 if (xchk_should_terminate(sc, &error))
575 if (error) {
579 * change, change the error code so that we exit to userspace
582 if (error == -EBUSY)
584 return error;
610 int error;
612 error = xfarray_load_sparse(xnc->nlinks, ino, &nl);
613 if (error)
614 return error;
618 error = xfarray_store(xnc->nlinks, ino, &nl);
619 if (error == -EFBIG) {
629 if (error)
630 return error;
650 int error;
665 error = -ECANCELED;
669 error = xchk_nlinks_comparison_read(xnc, ip->i_ino, &obs);
670 if (error)
762 error = -ECANCELED;
766 return error;
784 int error;
793 error = xchk_iget_agi(xnc->sc, ino, &agi_bp, &ip);
794 if (!error) {
796 error = xchk_nlinks_compare_inode(xnc, ip);
798 return error;
800 if (error == -ENOENT || error == -EINVAL) {
802 error = 0;
804 if (error)
816 error = -ECANCELED;
821 error = xchk_nlinks_comparison_read(xnc, ino, &obs);
822 if (error)
833 error = -ECANCELED;
841 return error;
854 int error;
857 error = xchk_iscan_iter(&xnc->compare_iscan, ipp);
858 } while (error == -EBUSY);
860 return error;
872 int error;
883 error = xchk_trans_alloc_empty(sc);
884 if (error)
885 return error;
893 while ((error = xchk_nlinks_compare_iter(xnc, &ip)) == 1) {
894 error = xchk_nlinks_compare_inode(xnc, ip);
897 if (error)
900 if (xchk_should_terminate(sc, &error))
905 if (error)
906 return error;
916 while ((error = xfarray_iter(xnc->nlinks, &cur, &nl)) == 1) {
924 error = xchk_nlinks_compare_inum(xnc, ino);
925 if (error)
926 return error;
928 if (xchk_should_terminate(xnc->sc, &error))
929 return error;
935 return error;
961 * error occurs, we'll tear everything down.
973 int error;
987 error = xfarray_create(descr, min(XFS_MAXINUMBER + 1, max_inos),
990 if (error)
1002 error = xfs_dir_hook_add(mp, &xnc->dhook);
1003 if (error)
1012 return error;
1021 int error = 0;
1024 error = xchk_nlinks_setup_scan(sc, xnc);
1025 if (error)
1026 return error;
1029 error = xchk_nlinks_collect(xnc);
1030 if (!xchk_xref_process_error(sc, 0, 0, &error))
1031 return error;
1040 error = xchk_nlinks_compare(xnc);
1041 if (!xchk_xref_process_error(sc, 0, 0, &error))
1042 return error;