Lines Matching refs:error

70 	int			*error,  in __xchk_process_error()  argument
74 switch (*error) { in __xchk_process_error()
82 sc->sm, *error); in __xchk_process_error()
88 *error = 0; in __xchk_process_error()
91 trace_xchk_op_error(sc, agno, bno, *error, in __xchk_process_error()
103 int *error) in xchk_process_error() argument
105 return __xchk_process_error(sc, agno, bno, error, in xchk_process_error()
114 int *error) in xchk_xref_process_error() argument
116 return __xchk_process_error(sc, agno, bno, error, in xchk_xref_process_error()
126 int *error, in __xchk_fblock_process_error() argument
130 switch (*error) { in __xchk_fblock_process_error()
136 trace_xchk_deadlock_retry(sc->ip, sc->sm, *error); in __xchk_fblock_process_error()
142 *error = 0; in __xchk_fblock_process_error()
145 trace_xchk_file_op_error(sc, whichfork, offset, *error, in __xchk_fblock_process_error()
157 int *error) in xchk_fblock_process_error() argument
159 return __xchk_fblock_process_error(sc, whichfork, offset, error, in xchk_fblock_process_error()
168 int *error) in xchk_fblock_xref_process_error() argument
170 return __xchk_fblock_process_error(sc, whichfork, offset, error, in xchk_fblock_xref_process_error()
412 int error; in xchk_perag_read_headers() local
414 error = xfs_ialloc_read_agi(sa->pag, sc->tp, &sa->agi_bp); in xchk_perag_read_headers()
415 if (error && want_ag_read_header_failure(sc, XFS_SCRUB_TYPE_AGI)) in xchk_perag_read_headers()
416 return error; in xchk_perag_read_headers()
418 error = xfs_alloc_read_agf(sa->pag, sc->tp, 0, &sa->agf_bp); in xchk_perag_read_headers()
419 if (error && want_ag_read_header_failure(sc, XFS_SCRUB_TYPE_AGF)) in xchk_perag_read_headers()
420 return error; in xchk_perag_read_headers()
434 int error = 0; in xchk_perag_drain_and_lock() local
441 if (xchk_should_terminate(sc, &error)) in xchk_perag_drain_and_lock()
442 return error; in xchk_perag_drain_and_lock()
444 error = xchk_perag_read_headers(sc, sa); in xchk_perag_drain_and_lock()
445 if (error) in xchk_perag_drain_and_lock()
446 return error; in xchk_perag_drain_and_lock()
494 error = xfs_perag_intent_drain(sa->pag); in xchk_perag_drain_and_lock()
495 if (error == -ERESTARTSYS) in xchk_perag_drain_and_lock()
496 error = -EINTR; in xchk_perag_drain_and_lock()
497 } while (!error); in xchk_perag_drain_and_lock()
499 return error; in xchk_perag_drain_and_lock()
634 int error; in xchk_ag_init() local
636 error = xchk_ag_read_headers(sc, agno, sa); in xchk_ag_init()
637 if (error) in xchk_ag_init()
638 return error; in xchk_ag_init()
694 int error; in xchk_setup_ag_btree() local
703 error = xchk_checkpoint_log(mp); in xchk_setup_ag_btree()
704 if (error) in xchk_setup_ag_btree()
705 return error; in xchk_setup_ag_btree()
708 error = xchk_setup_fs(sc); in xchk_setup_ag_btree()
709 if (error) in xchk_setup_ag_btree()
710 return error; in xchk_setup_ag_btree()
720 int error; in xchk_checkpoint_log() local
722 error = xfs_log_force(mp, XFS_LOG_SYNC); in xchk_checkpoint_log()
723 if (error) in xchk_checkpoint_log()
724 return error; in xchk_checkpoint_log()
767 int error; in xchk_iget_agi() local
774 error = 0; in xchk_iget_agi()
776 if (xchk_should_terminate(sc, &error)) in xchk_iget_agi()
777 return error; in xchk_iget_agi()
784 error = xfs_ialloc_read_agi(pag, tp, agi_bpp); in xchk_iget_agi()
786 if (error) in xchk_iget_agi()
787 return error; in xchk_iget_agi()
789 error = xfs_iget(mp, tp, inum, in xchk_iget_agi()
791 if (error == -EAGAIN) { in xchk_iget_agi()
811 if (error) in xchk_iget_agi()
812 return error; in xchk_iget_agi()
873 int error; in xchk_iget_for_scrubbing() local
888 error = xchk_iget_safe(sc, sc->sm->sm_ino, &ip); in xchk_iget_for_scrubbing()
889 if (!error) in xchk_iget_for_scrubbing()
891 if (error == -ENOENT) in xchk_iget_for_scrubbing()
892 return error; in xchk_iget_for_scrubbing()
893 if (error != -EINVAL) in xchk_iget_for_scrubbing()
911 error = xchk_trans_alloc(sc, 0); in xchk_iget_for_scrubbing()
912 if (error) in xchk_iget_for_scrubbing()
915 error = xchk_iget_agi(sc, sc->sm->sm_ino, &agi_bp, &ip); in xchk_iget_for_scrubbing()
916 if (error == 0) { in xchk_iget_for_scrubbing()
921 if (error == -ENOENT) in xchk_iget_for_scrubbing()
923 if (error != -EINVAL) in xchk_iget_for_scrubbing()
929 error = -ECANCELED; in xchk_iget_for_scrubbing()
951 error = -EFSCORRUPTED; in xchk_iget_for_scrubbing()
955 error = xfs_imap(pag, sc->tp, sc->sm->sm_ino, &imap, in xchk_iget_for_scrubbing()
958 if (error == -EINVAL || error == -ENOENT) in xchk_iget_for_scrubbing()
960 if (!error) in xchk_iget_for_scrubbing()
961 error = -EFSCORRUPTED; in xchk_iget_for_scrubbing()
967 error, __return_address); in xchk_iget_for_scrubbing()
968 return error; in xchk_iget_for_scrubbing()
1018 int error; in xchk_setup_inode_contents() local
1020 error = xchk_iget_for_scrubbing(sc); in xchk_setup_inode_contents()
1021 if (error) in xchk_setup_inode_contents()
1022 return error; in xchk_setup_inode_contents()
1027 error = xchk_trans_alloc(sc, resblks); in xchk_setup_inode_contents()
1028 if (error) in xchk_setup_inode_contents()
1033 return error; in xchk_setup_inode_contents()
1075 int *error, in xchk_should_check_xref() argument
1082 if (*error == 0) in xchk_should_check_xref()
1096 trace_xchk_xref_error(sc, *error, __return_address); in xchk_should_check_xref()
1102 *error = 0; in xchk_should_check_xref()
1135 int error; in xchk_metadata_inode_subtype() local
1141 error = xchk_inode(sc); in xchk_metadata_inode_subtype()
1144 error = xchk_bmap_data(sc); in xchk_metadata_inode_subtype()
1148 error = -EFSCORRUPTED; in xchk_metadata_inode_subtype()
1153 return error; in xchk_metadata_inode_subtype()
1165 int error; in xchk_metadata_inode_forks() local
1171 error = xchk_metadata_inode_subtype(sc, XFS_SCRUB_TYPE_INODE); in xchk_metadata_inode_forks()
1172 if (error || (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT)) in xchk_metadata_inode_forks()
1173 return error; in xchk_metadata_inode_forks()
1194 error = xchk_metadata_inode_subtype(sc, XFS_SCRUB_TYPE_BMBTD); in xchk_metadata_inode_forks()
1195 if (error || (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT)) in xchk_metadata_inode_forks()
1196 return error; in xchk_metadata_inode_forks()
1200 error = xfs_reflink_inode_has_shared_extents(sc->tp, sc->ip, in xchk_metadata_inode_forks()
1203 &error)) in xchk_metadata_inode_forks()
1204 return error; in xchk_metadata_inode_forks()
1260 int error; in xchk_inode_is_allocated() local
1279 error = -ENODATA; in xchk_inode_is_allocated()
1377 error = 0; in xchk_inode_is_allocated()
1383 return error; in xchk_inode_is_allocated()