Lines Matching refs:error
68 int *error, in __xchk_process_error() argument
72 switch (*error) { in __xchk_process_error()
79 sc->sm, *error); in __xchk_process_error()
85 *error = 0; in __xchk_process_error()
88 trace_xchk_op_error(sc, agno, bno, *error, in __xchk_process_error()
100 int *error) in xchk_process_error() argument
102 return __xchk_process_error(sc, agno, bno, error, in xchk_process_error()
111 int *error) in xchk_xref_process_error() argument
113 return __xchk_process_error(sc, agno, bno, error, in xchk_xref_process_error()
123 int *error, in __xchk_fblock_process_error() argument
127 switch (*error) { in __xchk_fblock_process_error()
132 trace_xchk_deadlock_retry(sc->ip, sc->sm, *error); in __xchk_fblock_process_error()
138 *error = 0; in __xchk_fblock_process_error()
141 trace_xchk_file_op_error(sc, whichfork, offset, *error, in __xchk_fblock_process_error()
153 int *error) in xchk_fblock_process_error() argument
155 return __xchk_fblock_process_error(sc, whichfork, offset, error, in xchk_fblock_process_error()
164 int *error) in xchk_fblock_xref_process_error() argument
166 return __xchk_fblock_process_error(sc, whichfork, offset, error, in xchk_fblock_xref_process_error()
410 int error; in xchk_ag_read_headers() local
417 error = xfs_ialloc_read_agi(mp, sc->tp, agno, &sa->agi_bp); in xchk_ag_read_headers()
418 if (error && want_ag_read_header_failure(sc, XFS_SCRUB_TYPE_AGI)) in xchk_ag_read_headers()
419 return error; in xchk_ag_read_headers()
421 error = xfs_alloc_read_agf(mp, sc->tp, agno, 0, &sa->agf_bp); in xchk_ag_read_headers()
422 if (error && want_ag_read_header_failure(sc, XFS_SCRUB_TYPE_AGF)) in xchk_ag_read_headers()
423 return error; in xchk_ag_read_headers()
425 error = xfs_alloc_read_agfl(mp, sc->tp, agno, &sa->agfl_bp); in xchk_ag_read_headers()
426 if (error && want_ag_read_header_failure(sc, XFS_SCRUB_TYPE_AGFL)) in xchk_ag_read_headers()
427 return error; in xchk_ag_read_headers()
547 int error; in xchk_ag_init() local
549 error = xchk_ag_read_headers(sc, agno, sa); in xchk_ag_init()
550 if (error) in xchk_ag_init()
551 return error; in xchk_ag_init()
599 int error; in xchk_setup_ag_btree() local
608 error = xchk_checkpoint_log(mp); in xchk_setup_ag_btree()
609 if (error) in xchk_setup_ag_btree()
610 return error; in xchk_setup_ag_btree()
613 error = xchk_setup_fs(sc); in xchk_setup_ag_btree()
614 if (error) in xchk_setup_ag_btree()
615 return error; in xchk_setup_ag_btree()
625 int error; in xchk_checkpoint_log() local
627 error = xfs_log_force(mp, XFS_LOG_SYNC); in xchk_checkpoint_log()
628 if (error) in xchk_checkpoint_log()
629 return error; in xchk_checkpoint_log()
647 int error; in xchk_get_inode() local
658 error = xfs_iget(mp, NULL, sc->sm->sm_ino, in xchk_get_inode()
660 switch (error) { in xchk_get_inode()
663 return error; in xchk_get_inode()
680 error = xfs_imap(sc->mp, sc->tp, sc->sm->sm_ino, &imap, in xchk_get_inode()
682 if (error) in xchk_get_inode()
684 error = -EFSCORRUPTED; in xchk_get_inode()
690 error, __return_address); in xchk_get_inode()
691 return error; in xchk_get_inode()
708 int error; in xchk_setup_inode_contents() local
710 error = xchk_get_inode(sc); in xchk_setup_inode_contents()
711 if (error) in xchk_setup_inode_contents()
712 return error; in xchk_setup_inode_contents()
717 error = xchk_trans_alloc(sc, resblks); in xchk_setup_inode_contents()
718 if (error) in xchk_setup_inode_contents()
725 return error; in xchk_setup_inode_contents()
736 int *error, in xchk_should_check_xref() argument
743 if (*error == 0) in xchk_should_check_xref()
757 trace_xchk_xref_error(sc, *error, __return_address); in xchk_should_check_xref()
763 *error = 0; in xchk_should_check_xref()
800 int error; in xchk_metadata_inode_forks() local
826 error = xchk_bmap_data(sc); in xchk_metadata_inode_forks()
828 if (error || (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT)) in xchk_metadata_inode_forks()
829 return error; in xchk_metadata_inode_forks()
833 error = xfs_reflink_inode_has_shared_extents(sc->tp, sc->ip, in xchk_metadata_inode_forks()
836 &error)) in xchk_metadata_inode_forks()
837 return error; in xchk_metadata_inode_forks()
842 return error; in xchk_metadata_inode_forks()