common.c (aa10fab0f859ef86e998ee1cdaa89fc8e542e2c9) common.c (9bbafc71919adfdf83fafd2ce909853b493e7d86)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2017 Oracle. All Rights Reserved.
4 * Author: Darrick J. Wong <darrick.wong@oracle.com>
5 */
6#include "xfs.h"
7#include "xfs_fs.h"
8#include "xfs_shared.h"
9#include "xfs_format.h"
10#include "xfs_trans_resv.h"
11#include "xfs_mount.h"
12#include "xfs_btree.h"
13#include "xfs_log_format.h"
14#include "xfs_trans.h"
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2017 Oracle. All Rights Reserved.
4 * Author: Darrick J. Wong <darrick.wong@oracle.com>
5 */
6#include "xfs.h"
7#include "xfs_fs.h"
8#include "xfs_shared.h"
9#include "xfs_format.h"
10#include "xfs_trans_resv.h"
11#include "xfs_mount.h"
12#include "xfs_btree.h"
13#include "xfs_log_format.h"
14#include "xfs_trans.h"
15#include "xfs_sb.h"
16#include "xfs_inode.h"
17#include "xfs_icache.h"
18#include "xfs_alloc.h"
19#include "xfs_alloc_btree.h"
20#include "xfs_ialloc.h"
21#include "xfs_ialloc_btree.h"
22#include "xfs_refcount_btree.h"
23#include "xfs_rmap.h"
24#include "xfs_rmap_btree.h"
25#include "xfs_log.h"
26#include "xfs_trans_priv.h"
27#include "xfs_attr.h"
28#include "xfs_reflink.h"
15#include "xfs_inode.h"
16#include "xfs_icache.h"
17#include "xfs_alloc.h"
18#include "xfs_alloc_btree.h"
19#include "xfs_ialloc.h"
20#include "xfs_ialloc_btree.h"
21#include "xfs_refcount_btree.h"
22#include "xfs_rmap.h"
23#include "xfs_rmap_btree.h"
24#include "xfs_log.h"
25#include "xfs_trans_priv.h"
26#include "xfs_attr.h"
27#include "xfs_reflink.h"
28#include "xfs_ag.h"
29#include "scrub/scrub.h"
30#include "scrub/common.h"
31#include "scrub/trace.h"
32#include "scrub/repair.h"
33#include "scrub/health.h"
34
35/* Common code for the metadata scrubbers. */
36

--- 32 unchanged lines hidden (view full) ---

69 __u32 errflag,
70 void *ret_ip)
71{
72 switch (*error) {
73 case 0:
74 return true;
75 case -EDEADLOCK:
76 /* Used to restart an op with deadlock avoidance. */
29#include "scrub/scrub.h"
30#include "scrub/common.h"
31#include "scrub/trace.h"
32#include "scrub/repair.h"
33#include "scrub/health.h"
34
35/* Common code for the metadata scrubbers. */
36

--- 32 unchanged lines hidden (view full) ---

69 __u32 errflag,
70 void *ret_ip)
71{
72 switch (*error) {
73 case 0:
74 return true;
75 case -EDEADLOCK:
76 /* Used to restart an op with deadlock avoidance. */
77 trace_xchk_deadlock_retry(
78 sc->ip ? sc->ip : XFS_I(file_inode(sc->file)),
79 sc->sm, *error);
77 trace_xchk_deadlock_retry(sc->ip, sc->sm, *error);
80 break;
81 case -EFSBADCRC:
82 case -EFSCORRUPTED:
83 /* Note the badness but don't abort. */
84 sc->sm->sm_flags |= errflag;
85 *error = 0;
86 /* fall through */
87 default:

--- 810 unchanged lines hidden ---
78 break;
79 case -EFSBADCRC:
80 case -EFSCORRUPTED:
81 /* Note the badness but don't abort. */
82 sc->sm->sm_flags |= errflag;
83 *error = 0;
84 /* fall through */
85 default:

--- 810 unchanged lines hidden ---