if (tvc) {
if (afs_mariner)
afs_MarinerLog("store$Removing", tvc);
-#ifdef AFS_BOZONLOCK_ENV
- afs_BozonLock(&tvc->pvnLock, tvc);
- /* Since afs_TryToSmush will do a pvn_vptrunc */
-#endif
ObtainWriteLock(&tvc->lock, 141);
/* note that callback will be broken on the deleted file if there are
* still >0 links left to it, so we'll get the stat right */
afs_TryToSmush(tvc, acred, 0);
}
ReleaseWriteLock(&tvc->lock);
-#ifdef AFS_BOZONLOCK_ENV
- afs_BozonUnlock(&tvc->pvnLock, tvc);
-#endif
afs_PutVCache(tvc);
}
return (0);
code = afsrename(adp, aname, adp, unlname, acred, treq);
Tnam1 = unlname;
if (!code) {
- struct VenusFid *oldmvid = NULL;
- if (tvc->mvid)
- oldmvid = tvc->mvid;
- tvc->mvid = (struct VenusFid *)unlname;
+ void *oldmvid = NULL;
+ if (tvc->mvid.silly_name)
+ oldmvid = tvc->mvid.silly_name;
+ tvc->mvid.silly_name = unlname;
if (oldmvid)
osi_FreeSmallSpace(oldmvid);
crhold(acred);
}
#endif
- if (avc->mvid && (doit || (avc->f.states & CUnlinkedDel))) {
+ if (avc->mvid.silly_name && (doit || (avc->f.states & CUnlinkedDel))) {
struct vrequest *treq = NULL;
if ((code = afs_CreateReq(&treq, avc->uncred))) {
/* Must bump the refCount because GetVCache may block.
* Also clear mvid so no other thread comes here if we block.
*/
- unlname = (char *)avc->mvid;
- avc->mvid = NULL;
+ unlname = avc->mvid.silly_name;
+ avc->mvid.silly_name = NULL;
cred = avc->uncred;
avc->uncred = NULL;