mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
obsd-cleanups-20040118
remove dead code add (commented out, non-working) new reclaim code
This commit is contained in:
parent
eabe2b6f77
commit
5f498279b8
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user