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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
/*
|
||||
|
Reference in New Issue
Block a user