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;
169 int error)
173 if (error == 0 && (sc->sm->sm_flags & XFS_SCRUB_IFLAG_REPAIR))
174 error = xfs_trans_commit(sc->tp);
202 return error;
370 int error;
373 error = -EINVAL;
382 error = -ENOENT;
393 error = -EINVAL;
426 error = -EOPNOTSUPP;
430 error = -EROFS;
435 error = 0;
437 return error;
477 int error = 0;
482 trace_xchk_start(XFS_I(file_inode(file)), sm, error);
485 error = -ESHUTDOWN;
488 error = -ENOTRECOVERABLE;
492 error = xchk_validate_inputs(mp, sm);
493 if (error)
501 error = -ENOMEM;
516 error = mnt_want_write_file(sc->file);
517 if (error)
524 error = sc->ops->setup(sc);
525 if (error == -EDEADLOCK && !(sc->flags & XCHK_TRY_HARDER))
527 if (error == -ECHRNG && !(sc->flags & XCHK_NEED_DRAIN))
529 if (error)
534 error = sc->ops->scrub(sc);
536 if (error == -EDEADLOCK && !(sc->flags & XCHK_TRY_HARDER))
538 if (error == -ECHRNG && !(sc->flags & XCHK_NEED_DRAIN))
540 if (error || (sm->sm_flags & XFS_SCRUB_OFLAG_INCOMPLETE))
570 error = xrep_attempt(sc, &run);
571 if (error == -EAGAIN) {
577 error = xchk_teardown(sc, 0);
578 if (error) {
589 error = xchk_teardown(sc, error);
591 if (error != -ENOENT)
595 trace_xchk_done(XFS_I(file_inode(file)), sm, error);
596 if (error == -EFSCORRUPTED || error == -EFSBADCRC) {
598 error = 0;
600 return error;
602 error = xchk_teardown(sc, 0);
603 if (error)
614 error = xchk_teardown(sc, 0);
615 if (error)