put-inode-speedup-20050815

FIXES 20820

don't bother with credp
This commit is contained in:
Chas Williams 2005-08-15 16:47:38 +00:00 committed by Derrick Brashear
parent bbe7880568
commit e0d9e434bb

View File

@ -341,16 +341,14 @@ afs_clear_inode(struct inode *ip)
static void
afs_put_inode(struct inode *ip)
{
cred_t *credp = crref();
struct vcache *vcp = VTOAFS(ip);
AFS_GLOCK();
ObtainReadLock(&vcp->lock);
if (VREFCOUNT(vcp) == 2)
afs_InactiveVCache(vcp, credp);
ReleaseReadLock(&vcp->lock);
AFS_GUNLOCK();
crfree(credp);
if (VREFCOUNT(vcp) == 2) {
AFS_GLOCK();
if (VREFCOUNT(vcp) == 2)
afs_InactiveVCache(vcp, NULL);
AFS_GUNLOCK();
}
}
/* afs_put_super