STABLE14-darwin-dnlc-cache-purge-20051223

FIXES 22644

cache_purge() to hint to darwin that we changed something instead of letting it cache invalid data


(cherry picked from commit 518bebb032c410a520a8923a16263e605370d60c)
This commit is contained in:
Chaskiel M Grundman 2005-12-24 00:29:11 +00:00 committed by Derrick Brashear
parent 48d58aa4a6
commit cc05eea7a0

View File

@ -367,6 +367,15 @@ osi_dnlc_purgedp(struct vcache *adp)
int i;
int writelocked;
#ifdef AFS_DARWIN_ENV
if (!(adp->states & (CVInit | CVFlushed
#ifdef AFS_DARWIN80_ENV
| CDeadVnode
#endif
)) && AFSTOV(adp))
cache_purge(AFSTOV(adp));
#endif
if (!afs_usednlc)
return 0;
@ -397,6 +406,15 @@ osi_dnlc_purgevp(struct vcache *avc)
int i;
int writelocked;
#ifdef AFS_DARWIN_ENV
if (!(avc->states & (CVInit | CVFlushed
#ifdef AFS_DARWIN80_ENV
| CDeadVnode
#endif
)) && AFSTOV(avc))
cache_purge(AFSTOV(avc));
#endif
if (!afs_usednlc)
return 0;