Lines Matching defs:error

84  * userspace.  The first is the error code (errno), which can be used to
140 int error = 0;
142 if (xchk_should_terminate(sc, &error))
143 return error;
178 int error)
182 if (error == 0 && (sc->sm->sm_flags & XFS_SCRUB_IFLAG_REPAIR))
183 error = xfs_trans_commit(sc->tp);
215 return error;
403 int error;
406 error = -EINVAL;
415 error = -ENOENT;
426 error = -EINVAL;
459 error = -EOPNOTSUPP;
463 error = -EROFS;
468 error = 0;
470 return error;
510 int error = 0;
515 trace_xchk_start(XFS_I(file_inode(file)), sm, error);
518 error = -ESHUTDOWN;
521 error = -ENOTRECOVERABLE;
525 error = xchk_validate_inputs(mp, sm);
526 if (error)
534 error = -ENOMEM;
549 error = mnt_want_write_file(sc->file);
550 if (error)
557 error = sc->ops->setup(sc);
558 if (error == -EDEADLOCK && !(sc->flags & XCHK_TRY_HARDER))
560 if (error == -ECHRNG && !(sc->flags & XCHK_NEED_DRAIN))
562 if (error)
568 error = sc->ops->repair_eval(sc);
570 error = sc->ops->scrub(sc);
572 if (error == -EDEADLOCK && !(sc->flags & XCHK_TRY_HARDER))
574 if (error == -ECHRNG && !(sc->flags & XCHK_NEED_DRAIN))
576 if (error || (sm->sm_flags & XFS_SCRUB_OFLAG_INCOMPLETE))
595 error = xrep_attempt(sc, &run);
596 if (error == -EAGAIN) {
602 error = xchk_teardown(sc, 0);
603 if (error) {
614 error = xchk_teardown(sc, error);
616 if (error != -ENOENT)
620 trace_xchk_done(XFS_I(file_inode(file)), sm, error);
621 if (error == -EFSCORRUPTED || error == -EFSBADCRC) {
623 error = 0;
625 return error;
627 error = xchk_teardown(sc, 0);
628 if (error)
639 error = xchk_teardown(sc, 0);
640 if (error)