obsd-cleanups-20040118

remove dead code
add (commented out, non-working) new reclaim code
This commit is contained in:
Jim Rees 2005-01-18 16:15:36 +00:00
parent eabe2b6f77
commit 5f498279b8
2 changed files with 9 additions and 7 deletions

View 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)

View 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