Lines Matching full:error
36 int error; in xchk_setup_parent() local
39 error = xrep_setup_parent(sc); in xchk_setup_parent()
40 if (error) in xchk_setup_parent()
41 return error; in xchk_setup_parent()
67 int error = 0; in xchk_parent_actor() local
71 error = -EFSCORRUPTED; in xchk_parent_actor()
72 if (!xchk_fblock_xref_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_parent_actor()
73 return error; in xchk_parent_actor()
78 if (xchk_should_terminate(spc->sc, &error)) in xchk_parent_actor()
79 return error; in xchk_parent_actor()
125 int error = 0; in xchk_parent_validate() local
162 * cross referencing error. Any other error is an operational error. in xchk_parent_validate()
164 error = xchk_iget(sc, parent_ino, &dp); in xchk_parent_validate()
165 if (error == -EINVAL || error == -ENOENT) { in xchk_parent_validate()
166 error = -EFSCORRUPTED; in xchk_parent_validate()
167 xchk_fblock_process_error(sc, XFS_DATA_FORK, 0, &error); in xchk_parent_validate()
168 return error; in xchk_parent_validate()
170 if (!xchk_fblock_xref_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_parent_validate()
171 return error; in xchk_parent_validate()
182 error = -EAGAIN; in xchk_parent_validate()
191 error = -EBUSY; in xchk_parent_validate()
203 error = xchk_dir_walk(sc, dp, xchk_parent_actor, &spc); in xchk_parent_validate()
204 if (!xchk_fblock_xref_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_parent_validate()
218 return error; in xchk_parent_validate()
283 int error; in xchk_parent_scan_dotdot() local
288 error = xfs_parent_from_attr(sc->mp, attr_flags, name, namelen, value, in xchk_parent_scan_dotdot()
290 if (error) in xchk_parent_scan_dotdot()
291 return error; in xchk_parent_scan_dotdot()
305 int error; in xchk_parent_pptr_and_dotdot() local
308 error = xchk_dir_lookup(sc, sc->ip, &xfs_name_dotdot, &pp->parent_ino); in xchk_parent_pptr_and_dotdot()
309 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_parent_pptr_and_dotdot()
310 return error; in xchk_parent_pptr_and_dotdot()
334 error = xchk_xattr_walk(sc, sc->ip, xchk_parent_scan_dotdot, NULL, pp); in xchk_parent_pptr_and_dotdot()
335 if (error == -ECANCELED) { in xchk_parent_pptr_and_dotdot()
339 if (!error || error == -EFSCORRUPTED) { in xchk_parent_pptr_and_dotdot()
344 return error; in xchk_parent_pptr_and_dotdot()
386 int error; in xchk_parent_dirent() local
392 error = xchk_dir_lookup(sc, dp, xname, &child_ino); in xchk_parent_dirent()
393 if (error == -ENOENT) { in xchk_parent_dirent()
397 if (!xchk_fblock_xref_process_error(sc, XFS_ATTR_FORK, 0, &error)) in xchk_parent_dirent()
398 return error; in xchk_parent_dirent()
419 int error; in xchk_parent_iget() local
422 error = xfs_dir_ino_validate(sc->mp, parent_ino); in xchk_parent_iget()
423 if (error) { in xchk_parent_iget()
428 error = xchk_iget(sc, parent_ino, &ip); in xchk_parent_iget()
429 if (error == -EINVAL || error == -ENOENT) { in xchk_parent_iget()
433 if (!xchk_fblock_xref_process_error(sc, XFS_ATTR_FORK, 0, &error)) in xchk_parent_iget()
434 return error; in xchk_parent_iget()
480 int error; in xchk_parent_scan_attr() local
485 error = xfs_parent_from_attr(sc->mp, attr_flags, name, namelen, value, in xchk_parent_scan_attr()
487 if (error) { in xchk_parent_scan_attr()
489 return error; in xchk_parent_scan_attr()
500 error = xchk_parent_iget(pp, pptr_rec, &dp); in xchk_parent_scan_attr()
501 if (error) in xchk_parent_scan_attr()
502 return error; in xchk_parent_scan_attr()
517 error = xfblob_storename(pp->pptr_names, &save_pp.name_cookie, in xchk_parent_scan_attr()
520 &error)) in xchk_parent_scan_attr()
523 error = xfarray_append(pp->pptr_entries, &save_pp); in xchk_parent_scan_attr()
525 &error)) in xchk_parent_scan_attr()
531 error = xchk_parent_dirent(pp, &xname, dp); in xchk_parent_scan_attr()
532 if (error) in xchk_parent_scan_attr()
539 return error; in xchk_parent_scan_attr()
554 int error; in xchk_parent_revalidate_pptr() local
556 error = xfs_parent_lookup(sc->tp, sc->ip, xname, pptr, &pp->pptr_args); in xchk_parent_revalidate_pptr()
557 if (error == -ENOATTR) { in xchk_parent_revalidate_pptr()
562 return error; in xchk_parent_revalidate_pptr()
578 int error; in xchk_parent_slow_pptr() local
582 error = xchk_parent_revalidate_pptr(pp, xname, pptr); in xchk_parent_slow_pptr()
583 if (error == -ENOENT) in xchk_parent_slow_pptr()
586 &error)) in xchk_parent_slow_pptr()
587 return error; in xchk_parent_slow_pptr()
590 error = xchk_parent_iget(pp, pptr, &dp); in xchk_parent_slow_pptr()
591 if (error) in xchk_parent_slow_pptr()
592 return error; in xchk_parent_slow_pptr()
615 error = xchk_dir_trylock_for_pptrs(sc, dp, &lockmode); in xchk_parent_slow_pptr()
616 if (error) in xchk_parent_slow_pptr()
620 error = xchk_parent_revalidate_pptr(pp, xname, pptr); in xchk_parent_slow_pptr()
621 if (error == -ENOENT) { in xchk_parent_slow_pptr()
622 error = 0; in xchk_parent_slow_pptr()
625 if (!xchk_fblock_xref_process_error(sc, XFS_ATTR_FORK, 0, &error)) in xchk_parent_slow_pptr()
629 error = xchk_parent_dirent(pp, xname, dp); in xchk_parent_slow_pptr()
634 return error; in xchk_parent_slow_pptr()
643 int error; in xchk_parent_finish_slow_pptrs() local
651 error = xfarray_load(pp->pptr_entries, array_cur, &pptr); in xchk_parent_finish_slow_pptrs()
652 if (error) in xchk_parent_finish_slow_pptrs()
653 return error; in xchk_parent_finish_slow_pptrs()
655 error = xfblob_loadname(pp->pptr_names, pptr.name_cookie, in xchk_parent_finish_slow_pptrs()
657 if (error) in xchk_parent_finish_slow_pptrs()
658 return error; in xchk_parent_finish_slow_pptrs()
660 error = xchk_parent_slow_pptr(pp, &pp->xname, &pptr.pptr_rec); in xchk_parent_finish_slow_pptrs()
661 if (error) in xchk_parent_finish_slow_pptrs()
662 return error; in xchk_parent_finish_slow_pptrs()
684 int error; in xchk_parent_count_pptr() local
689 error = xfs_parent_from_attr(sc->mp, attr_flags, name, namelen, value, in xchk_parent_count_pptr()
691 if (error) in xchk_parent_count_pptr()
692 return error; in xchk_parent_count_pptr()
708 int error; in xchk_parent_count_pptrs() local
716 error = xchk_xattr_walk(sc, sc->ip, xchk_parent_count_pptr, in xchk_parent_count_pptrs()
718 if (error == -EFSCORRUPTED) { in xchk_parent_count_pptrs()
723 if (error) in xchk_parent_count_pptrs()
724 return error; in xchk_parent_count_pptrs()
759 int error; in xchk_parent_pptr() local
772 error = xfarray_create(descr, 0, sizeof(struct xchk_pptr), in xchk_parent_pptr()
775 if (error) in xchk_parent_pptr()
779 error = xfblob_create(descr, &pp->pptr_names); in xchk_parent_pptr()
781 if (error) in xchk_parent_pptr()
784 error = xchk_xattr_walk(sc, sc->ip, xchk_parent_scan_attr, NULL, pp); in xchk_parent_pptr()
785 if (error == -ECANCELED) { in xchk_parent_pptr()
786 error = 0; in xchk_parent_pptr()
789 if (error) in xchk_parent_pptr()
792 error = xchk_parent_finish_slow_pptrs(pp); in xchk_parent_pptr()
793 if (error == -ETIMEDOUT) { in xchk_parent_pptr()
795 error = 0; in xchk_parent_pptr()
798 if (error) in xchk_parent_pptr()
818 error = xchk_parent_pptr_and_dotdot(pp); in xchk_parent_pptr()
819 if (error) in xchk_parent_pptr()
831 error = xchk_parent_count_pptrs(pp); in xchk_parent_pptr()
832 if (error) in xchk_parent_pptr()
841 return error; in xchk_parent_pptr()
851 int error = 0; in xchk_parent() local
870 if (xchk_should_terminate(sc, &error)) in xchk_parent()
874 error = xchk_dir_lookup(sc, sc->ip, &xfs_name_dotdot, in xchk_parent()
876 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_parent()
877 return error; in xchk_parent()
887 error = xchk_parent_validate(sc, parent_ino); in xchk_parent()
888 } while (error == -EAGAIN); in xchk_parent()
889 if (error == -EBUSY) { in xchk_parent()
892 * incomplete. No further error return is necessary. in xchk_parent()
897 return error; in xchk_parent()