diff --git a/src/afs/afs_bypasscache.c b/src/afs/afs_bypasscache.c index 3cab748a80..4aab3bbe1a 100644 --- a/src/afs/afs_bypasscache.c +++ b/src/afs/afs_bypasscache.c @@ -153,12 +153,12 @@ afs_TransitionToBypass(struct vcache *avc, * Someone may have beat us to doing the transition - we had no lock * when we checked the flag earlier. No cause to panic, just return. */ - if (avc->f.states & FCSBypass) + if (avc->cachingStates & FCSBypass) goto done; /* If we never cached this, just change state */ if (setDesire && (!(avc->cachingStates & FCSBypass))) { - avc->f.states |= FCSBypass; + avc->cachingStates |= FCSBypass; goto done; } @@ -233,7 +233,7 @@ afs_TransitionToCaching(struct vcache *avc, * Someone may have beat us to doing the transition - we had no lock * when we checked the flag earlier. No cause to panic, just return. */ - if (!(avc->f.states & FCSBypass)) + if (!(avc->cachingStates & FCSBypass)) goto done; /* Ok, we actually do need to flush */