mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
put-inode-speedup-20050815
FIXES 20820 don't bother with credp
This commit is contained in:
parent
bbe7880568
commit
e0d9e434bb
@ -341,16 +341,14 @@ afs_clear_inode(struct inode *ip)
|
|||||||
static void
|
static void
|
||||||
afs_put_inode(struct inode *ip)
|
afs_put_inode(struct inode *ip)
|
||||||
{
|
{
|
||||||
cred_t *credp = crref();
|
|
||||||
struct vcache *vcp = VTOAFS(ip);
|
struct vcache *vcp = VTOAFS(ip);
|
||||||
|
|
||||||
AFS_GLOCK();
|
if (VREFCOUNT(vcp) == 2) {
|
||||||
ObtainReadLock(&vcp->lock);
|
AFS_GLOCK();
|
||||||
if (VREFCOUNT(vcp) == 2)
|
if (VREFCOUNT(vcp) == 2)
|
||||||
afs_InactiveVCache(vcp, credp);
|
afs_InactiveVCache(vcp, NULL);
|
||||||
ReleaseReadLock(&vcp->lock);
|
AFS_GUNLOCK();
|
||||||
AFS_GUNLOCK();
|
}
|
||||||
crfree(credp);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* afs_put_super
|
/* afs_put_super
|
||||||
|
Loading…
Reference in New Issue
Block a user