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
154 * cross referencing error. Any other error is an operational error. in xchk_parent_validate()
156 error = xchk_iget(sc, parent_ino, &dp); in xchk_parent_validate()
157 if (error == -EINVAL || error == -ENOENT) { in xchk_parent_validate()
158 error = -EFSCORRUPTED; in xchk_parent_validate()
159 xchk_fblock_process_error(sc, XFS_DATA_FORK, 0, &error); in xchk_parent_validate()
160 return error; in xchk_parent_validate()
162 if (!xchk_fblock_xref_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_parent_validate()
163 return error; in xchk_parent_validate()
174 error = -EAGAIN; in xchk_parent_validate()
183 error = -EBUSY; in xchk_parent_validate()
189 error = xchk_dir_walk(sc, dp, xchk_parent_actor, &spc); in xchk_parent_validate()
190 if (!xchk_fblock_xref_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_parent_validate()
204 return error; in xchk_parent_validate()
269 int error; in xchk_parent_scan_dotdot() local
274 error = xfs_parent_from_attr(sc->mp, attr_flags, name, namelen, value, in xchk_parent_scan_dotdot()
276 if (error) in xchk_parent_scan_dotdot()
277 return error; in xchk_parent_scan_dotdot()
291 int error; in xchk_parent_pptr_and_dotdot() local
294 error = xchk_dir_lookup(sc, sc->ip, &xfs_name_dotdot, &pp->parent_ino); in xchk_parent_pptr_and_dotdot()
295 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_parent_pptr_and_dotdot()
296 return error; in xchk_parent_pptr_and_dotdot()
320 error = xchk_xattr_walk(sc, sc->ip, xchk_parent_scan_dotdot, NULL, pp); in xchk_parent_pptr_and_dotdot()
321 if (error == -ECANCELED) { in xchk_parent_pptr_and_dotdot()
325 if (!error || error == -EFSCORRUPTED) { in xchk_parent_pptr_and_dotdot()
330 return error; in xchk_parent_pptr_and_dotdot()
372 int error; in xchk_parent_dirent() local
378 error = xchk_dir_lookup(sc, dp, xname, &child_ino); in xchk_parent_dirent()
379 if (error == -ENOENT) { in xchk_parent_dirent()
383 if (!xchk_fblock_xref_process_error(sc, XFS_ATTR_FORK, 0, &error)) in xchk_parent_dirent()
384 return error; in xchk_parent_dirent()
405 int error; in xchk_parent_iget() local
408 error = xfs_dir_ino_validate(sc->mp, parent_ino); in xchk_parent_iget()
409 if (error) { in xchk_parent_iget()
414 error = xchk_iget(sc, parent_ino, &ip); in xchk_parent_iget()
415 if (error == -EINVAL || error == -ENOENT) { in xchk_parent_iget()
419 if (!xchk_fblock_xref_process_error(sc, XFS_ATTR_FORK, 0, &error)) in xchk_parent_iget()
420 return error; in xchk_parent_iget()
466 int error; in xchk_parent_scan_attr() local
471 error = xfs_parent_from_attr(sc->mp, attr_flags, name, namelen, value, in xchk_parent_scan_attr()
473 if (error) { in xchk_parent_scan_attr()
475 return error; in xchk_parent_scan_attr()
486 error = xchk_parent_iget(pp, pptr_rec, &dp); in xchk_parent_scan_attr()
487 if (error) in xchk_parent_scan_attr()
488 return error; in xchk_parent_scan_attr()
503 error = xfblob_storename(pp->pptr_names, &save_pp.name_cookie, in xchk_parent_scan_attr()
506 &error)) in xchk_parent_scan_attr()
509 error = xfarray_append(pp->pptr_entries, &save_pp); in xchk_parent_scan_attr()
511 &error)) in xchk_parent_scan_attr()
517 error = xchk_parent_dirent(pp, &xname, dp); in xchk_parent_scan_attr()
518 if (error) in xchk_parent_scan_attr()
525 return error; in xchk_parent_scan_attr()
540 int error; in xchk_parent_revalidate_pptr() local
542 error = xfs_parent_lookup(sc->tp, sc->ip, xname, pptr, &pp->pptr_args); in xchk_parent_revalidate_pptr()
543 if (error == -ENOATTR) { in xchk_parent_revalidate_pptr()
548 return error; in xchk_parent_revalidate_pptr()
564 int error; in xchk_parent_slow_pptr() local
568 error = xchk_parent_revalidate_pptr(pp, xname, pptr); in xchk_parent_slow_pptr()
569 if (error == -ENOENT) in xchk_parent_slow_pptr()
572 &error)) in xchk_parent_slow_pptr()
573 return error; in xchk_parent_slow_pptr()
576 error = xchk_parent_iget(pp, pptr, &dp); in xchk_parent_slow_pptr()
577 if (error) in xchk_parent_slow_pptr()
578 return error; in xchk_parent_slow_pptr()
601 error = xchk_dir_trylock_for_pptrs(sc, dp, &lockmode); in xchk_parent_slow_pptr()
602 if (error) in xchk_parent_slow_pptr()
606 error = xchk_parent_revalidate_pptr(pp, xname, pptr); in xchk_parent_slow_pptr()
607 if (error == -ENOENT) { in xchk_parent_slow_pptr()
608 error = 0; in xchk_parent_slow_pptr()
611 if (!xchk_fblock_xref_process_error(sc, XFS_ATTR_FORK, 0, &error)) in xchk_parent_slow_pptr()
615 error = xchk_parent_dirent(pp, xname, dp); in xchk_parent_slow_pptr()
620 return error; in xchk_parent_slow_pptr()
629 int error; in xchk_parent_finish_slow_pptrs() local
637 error = xfarray_load(pp->pptr_entries, array_cur, &pptr); in xchk_parent_finish_slow_pptrs()
638 if (error) in xchk_parent_finish_slow_pptrs()
639 return error; in xchk_parent_finish_slow_pptrs()
641 error = xfblob_loadname(pp->pptr_names, pptr.name_cookie, in xchk_parent_finish_slow_pptrs()
643 if (error) in xchk_parent_finish_slow_pptrs()
644 return error; in xchk_parent_finish_slow_pptrs()
646 error = xchk_parent_slow_pptr(pp, &pp->xname, &pptr.pptr_rec); in xchk_parent_finish_slow_pptrs()
647 if (error) in xchk_parent_finish_slow_pptrs()
648 return error; in xchk_parent_finish_slow_pptrs()
670 int error; in xchk_parent_count_pptr() local
675 error = xfs_parent_from_attr(sc->mp, attr_flags, name, namelen, value, in xchk_parent_count_pptr()
677 if (error) in xchk_parent_count_pptr()
678 return error; in xchk_parent_count_pptr()
694 int error; in xchk_parent_count_pptrs() local
702 error = xchk_xattr_walk(sc, sc->ip, xchk_parent_count_pptr, in xchk_parent_count_pptrs()
704 if (error == -EFSCORRUPTED) { in xchk_parent_count_pptrs()
709 if (error) in xchk_parent_count_pptrs()
710 return error; in xchk_parent_count_pptrs()
737 int error; in xchk_parent_pptr() local
750 error = xfarray_create(descr, 0, sizeof(struct xchk_pptr), in xchk_parent_pptr()
753 if (error) in xchk_parent_pptr()
757 error = xfblob_create(descr, &pp->pptr_names); in xchk_parent_pptr()
759 if (error) in xchk_parent_pptr()
762 error = xchk_xattr_walk(sc, sc->ip, xchk_parent_scan_attr, NULL, pp); in xchk_parent_pptr()
763 if (error == -ECANCELED) { in xchk_parent_pptr()
764 error = 0; in xchk_parent_pptr()
767 if (error) in xchk_parent_pptr()
770 error = xchk_parent_finish_slow_pptrs(pp); in xchk_parent_pptr()
771 if (error == -ETIMEDOUT) { in xchk_parent_pptr()
773 error = 0; in xchk_parent_pptr()
776 if (error) in xchk_parent_pptr()
796 error = xchk_parent_pptr_and_dotdot(pp); in xchk_parent_pptr()
797 if (error) in xchk_parent_pptr()
809 error = xchk_parent_count_pptrs(pp); in xchk_parent_pptr()
810 if (error) in xchk_parent_pptr()
819 return error; in xchk_parent_pptr()
829 int error = 0; in xchk_parent() local
848 if (xchk_should_terminate(sc, &error)) in xchk_parent()
852 error = xchk_dir_lookup(sc, sc->ip, &xfs_name_dotdot, in xchk_parent()
854 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_parent()
855 return error; in xchk_parent()
865 error = xchk_parent_validate(sc, parent_ino); in xchk_parent()
866 } while (error == -EAGAIN); in xchk_parent()
867 if (error == -EBUSY) { in xchk_parent()
870 * incomplete. No further error return is necessary. in xchk_parent()
875 return error; in xchk_parent()