Lines Matching refs:error
40 * The *_process_error() family of functions are used to process error return
43 * If there's no error, we return true to tell the caller that it's ok
47 * caller that something bad happened, and we preserve *error so that
48 * the caller can return the *error up the stack to userspace.
51 * OFLAG_CORRUPT in sm_flags and the *error is cleared. In other words,
54 * something bad happened. Since the error has been cleared, the caller
68 int *error,
72 switch (*error) {
77 trace_xchk_deadlock_retry(sc->ip, sc->sm, *error);
83 *error = 0;
86 trace_xchk_op_error(sc, agno, bno, *error,
98 int *error)
100 return __xchk_process_error(sc, agno, bno, error,
109 int *error)
111 return __xchk_process_error(sc, agno, bno, error,
121 int *error,
125 switch (*error) {
130 trace_xchk_deadlock_retry(sc->ip, sc->sm, *error);
136 *error = 0;
139 trace_xchk_file_op_error(sc, whichfork, offset, *error,
151 int *error)
153 return __xchk_fblock_process_error(sc, whichfork, offset, error,
162 int *error)
164 return __xchk_fblock_process_error(sc, whichfork, offset, error,
410 int error;
412 error = xfs_ialloc_read_agi(mp, sc->tp, agno, agi);
413 if (error && want_ag_read_header_failure(sc, XFS_SCRUB_TYPE_AGI))
416 error = xfs_alloc_read_agf(mp, sc->tp, agno, 0, agf);
417 if (error && want_ag_read_header_failure(sc, XFS_SCRUB_TYPE_AGF))
420 error = xfs_alloc_read_agfl(mp, sc->tp, agno, agfl);
421 if (error && want_ag_read_header_failure(sc, XFS_SCRUB_TYPE_AGFL))
423 error = 0;
425 return error;
562 int error;
565 error = xchk_ag_read_headers(sc, agno, &sa->agi_bp,
567 if (error)
568 return error;
630 int error;
639 error = xchk_checkpoint_log(mp);
640 if (error)
641 return error;
644 error = xchk_setup_fs(sc, ip);
645 if (error)
646 return error;
656 int error;
658 error = xfs_log_force(mp, XFS_LOG_SYNC);
659 if (error)
660 return error;
678 int error;
689 error = xfs_iget(mp, NULL, sc->sm->sm_ino,
691 switch (error) {
694 return error;
711 error = xfs_imap(sc->mp, sc->tp, sc->sm->sm_ino, &imap,
713 if (error)
715 error = -EFSCORRUPTED;
721 error, __return_address);
722 return error;
740 int error;
742 error = xchk_get_inode(sc, ip);
743 if (error)
744 return error;
749 error = xchk_trans_alloc(sc, resblks);
750 if (error)
757 return error;
762 * If there was an error accessing the cross-reference btree, just delete
768 int *error,
775 if (*error == 0)
783 /* xref error, delete cursor and bail out. */
789 trace_xchk_xref_error(sc, *error, __return_address);
795 *error = 0;
832 int error;
858 error = xchk_bmap_data(sc);
860 if (error || (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT))
861 return error;
865 error = xfs_reflink_inode_has_shared_extents(sc->tp, sc->ip,
868 &error))
869 return error;
874 return error;