mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 21:47:45 +00:00
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:
parent
48d58aa4a6
commit
cc05eea7a0
@ -367,6 +367,15 @@ osi_dnlc_purgedp(struct vcache *adp)
|
|||||||
int i;
|
int i;
|
||||||
int writelocked;
|
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)
|
if (!afs_usednlc)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
@ -397,6 +406,15 @@ osi_dnlc_purgevp(struct vcache *avc)
|
|||||||
int i;
|
int i;
|
||||||
int writelocked;
|
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)
|
if (!afs_usednlc)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user