FIXES 22644
cache_purge() to hint to darwin that we changed something instead of letting it cache invalid data
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;
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;