remove dead code
add (commented out, non-working) new reclaim code
static char waitV;
-void
-afs_osi_InitWaitHandle(struct afs_osi_WaitHandle *achandle)
-{
- AFS_STATCNT(osi_InitWaitHandle);
- achandle->proc = NULL;
-}
-
/* cancel osi_Wait */
void
afs_osi_CancelWait(struct afs_osi_WaitHandle *achandle)
int haveGlock = ISAFS_GLOCK();
int haveVlock = CheckLock(&afs_xvcache);
+#if 0
+ printf("reclaim usecount %d\n", vp->v_usecount);
+ /* OK, there are no internal vrefCounts, so there shouldn't
+ * be any more refs here. */
+ vp->v_data = NULL; /* remove from vnode */
+ avc->v = NULL; /* also drop the ptr to vnode */
+ return 0;
+#else
if (!haveGlock)
AFS_GLOCK();
if (!haveVlock)
if (!haveGlock)
AFS_GUNLOCK();
return code;
+#endif
}
int