obsd-cleanups-20040118
authorJim Rees <rees@umich.edu>
Tue, 18 Jan 2005 16:15:36 +0000 (16:15 +0000)
committerJim Rees <rees@umich.edu>
Tue, 18 Jan 2005 16:15:36 +0000 (16:15 +0000)
remove dead code
add (commented out, non-working) new reclaim code

src/afs/OBSD/osi_sleep.c
src/afs/OBSD/osi_vnodeops.c

index 5fd1c0e..4e6b77e 100644 (file)
@@ -54,13 +54,6 @@ RCSID
 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)
index c4b38ea..426d4f4 100644 (file)
@@ -894,6 +894,14 @@ afs_nbsd_reclaim(void *v)
     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)
@@ -909,6 +917,7 @@ afs_nbsd_reclaim(void *v)
     if (!haveGlock)
        AFS_GUNLOCK();
     return code;
+#endif
 }
 
 int