If the cm_scache_t has a registered callback, there is no reason
to obtain a volume reference for a .readonly. Just use the
callback.
Change-Id: I40a696b9c5fa2e8104837871236c41c338dfbdf9
Reviewed-on: http://gerrit.openafs.org/7716
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
return (cm_data.fakeDirVersion == scp->dataVersion);
}
#endif
+ if (scp->cbServerp != NULL)
+ return 1;
+
if (scp->flags & CM_SCACHEFLAG_PURERO) {
cm_volume_t *volp = cm_GetVolumeByFID(&scp->fid);
if (volp) {
return haveCB;
}
}
- if (scp->cbServerp != NULL)
- return 1;
- else
- return 0;
+ return 0;
}
/* need to detect a broken callback that races with our obtaining a callback.