diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2019-04-16 17:21:59 +0200 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-04-16 19:01:57 +0200 |
commit | f8c2a2257ca12fb3a04830bbacc85ce860f04ba9 (patch) | |
tree | 6f7c3b5d9e07ddf2dd643008df046122fdc2add0 /fs/xfs/scrub/scrub.h | |
parent | xfs: refactor scrub context initialization (diff) | |
download | linux-f8c2a2257ca12fb3a04830bbacc85ce860f04ba9.tar.xz linux-f8c2a2257ca12fb3a04830bbacc85ce860f04ba9.zip |
xfs: collapse scrub bool state flags into a single unsigned int
Combine all the boolean state flags in struct xfs_scrub into a single
unsigned int, because we're going to be adding more state flags soon.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/scrub/scrub.h')
-rw-r--r-- | fs/xfs/scrub/scrub.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fs/xfs/scrub/scrub.h b/fs/xfs/scrub/scrub.h index 22f754fba8e5..60359e7de930 100644 --- a/fs/xfs/scrub/scrub.h +++ b/fs/xfs/scrub/scrub.h @@ -62,13 +62,18 @@ struct xfs_scrub { struct xfs_inode *ip; void *buf; uint ilock_flags; - bool try_harder; - bool has_quotaofflock; + + /* See the XCHK state flags below. */ + unsigned int flags; /* State tracking for single-AG operations. */ struct xchk_ag sa; }; +/* XCHK state flags */ +#define XCHK_TRY_HARDER (1 << 0) /* can't get resources, try again */ +#define XCHK_HAS_QUOTAOFFLOCK (1 << 1) /* we hold the quotaoff lock */ + /* Metadata scrubbers */ int xchk_tester(struct xfs_scrub *sc); int xchk_superblock(struct xfs_scrub *sc); |