use vnode to vcache conversion macros
if ((error = ubc_info_init(&avc->v))) {
AFS_GLOCK();
avc->states &= ~CUBCinit;
- AFS_RELE(avc);
+ AFS_RELE(AFSTOV(avc));
return error;
}
#ifndef AFS_DARWIN14_ENV
#endif
AFS_GLOCK();
avc->states &= ~CUBCinit;
- AFS_RELE(avc);
+ AFS_RELE(AFSTOV(avc));
}
if (UBCINFOEXISTS(&avc->v))
ubc_setsize(&avc->v, avc->m.Length);
* } */ *ap;
{
int code;
- struct vcache *avc = ap->a_vp;
+ struct vnode *vp = ap->a_vp;
+ struct vcache *avc = VTOAFS(vp);
AFS_GLOCK();
if (ap->a_cred)
code = afs_close(avc, ap->a_fflag, ap->a_cred, ap->a_p);