mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 23:40:13 +00:00
disconnected-getvcache-avoid-duplicate-work-20081012
LICENSE IPL10 FIXES 121254 don't do duplicate work finding a vcache we already had
This commit is contained in:
parent
726fc5b842
commit
7c6fac305c
@ -2021,12 +2021,7 @@ afs_GetVCache(register struct VenusFid *afid, struct vrequest *areq,
|
||||
|
||||
if (AFS_IS_DISCONNECTED) {
|
||||
if (AFS_IS_DISCON_RW) {
|
||||
/* Seek the vnode manually. */
|
||||
ObtainSharedLock(&afs_xvcache, 738);
|
||||
avc = afs_FindVCache(afid, NULL, 1);
|
||||
ReleaseSharedLock(&afs_xvcache);
|
||||
|
||||
if (vType(avc) == VDIR)
|
||||
if (vType(tvc) == VDIR)
|
||||
OutStatus.FileType = Directory;
|
||||
|
||||
code = tvc?0:ENOENT;
|
||||
|
Loading…
Reference in New Issue
Block a user