diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2019-04-16 08:21:59 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-04-16 10:01:57 -0700 |
commit | f8c2a2257ca12fb3a04830bbacc85ce860f04ba9 (patch) | |
tree | 6f7c3b5d9e07ddf2dd643008df046122fdc2add0 /fs/xfs/scrub/repair.c | |
parent | 9d71e15586fd7d274a23dd0bbf54278c86fe263f (diff) | |
download | linux-f8c2a2257ca12fb3a04830bbacc85ce860f04ba9.tar.gz linux-f8c2a2257ca12fb3a04830bbacc85ce860f04ba9.tar.bz2 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/repair.c')
-rw-r--r-- | fs/xfs/scrub/repair.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/scrub/repair.c b/fs/xfs/scrub/repair.c index f28f4bad317b..c093939fe35a 100644 --- a/fs/xfs/scrub/repair.c +++ b/fs/xfs/scrub/repair.c @@ -71,8 +71,8 @@ xrep_attempt( case -EDEADLOCK: case -EAGAIN: /* Tell the caller to try again having grabbed all the locks. */ - if (!sc->try_harder) { - sc->try_harder = true; + if (!(sc->flags & XCHK_TRY_HARDER)) { + sc->flags |= XCHK_TRY_HARDER; return -EAGAIN; } /* |