Lines Matching refs:error
82 * userspace. The first is the error code (errno), which can be used to
138 int error = 0;
140 if (xchk_should_terminate(sc, &error))
141 return error;
153 int error)
157 if (error == 0 && (sc->sm->sm_flags & XFS_SCRUB_IFLAG_REPAIR))
158 error = xfs_trans_commit(sc->tp);
182 return error;
364 int error;
367 error = -EINVAL;
376 error = -ENOENT;
387 error = -EINVAL;
415 error = -EOPNOTSUPP;
419 error = -EROFS;
424 error = 0;
426 return error;
470 int error = 0;
475 trace_xchk_start(ip, sm, error);
478 error = -ESHUTDOWN;
481 error = -ENOTRECOVERABLE;
485 error = xchk_validate_inputs(mp, sm);
486 if (error)
503 error = sc.ops->setup(&sc, ip);
504 if (error)
508 error = sc.ops->scrub(&sc);
509 if (!(sc.flags & XCHK_TRY_HARDER) && error == -EDEADLOCK) {
515 error = xchk_teardown(&sc, ip, 0);
516 if (error)
520 } else if (error)
549 error = xrep_attempt(ip, &sc);
550 if (error == -EAGAIN) {
556 error = xchk_teardown(&sc, ip, 0);
557 if (error) {
568 error = xchk_teardown(&sc, ip, error);
570 trace_xchk_done(ip, sm, error);
571 if (error == -EFSCORRUPTED || error == -EFSBADCRC) {
573 error = 0;
575 return error;