git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
afs: Refactor osi_vnhold/AFS_FAST_HOLD
[openafs.git]
/
src
/
afs
/
afs_osidnlc.c
diff --git
a/src/afs/afs_osidnlc.c
b/src/afs/afs_osidnlc.c
index
ab451dd
..
7c6a65c
100644
(file)
--- a/
src/afs/afs_osidnlc.c
+++ b/
src/afs/afs_osidnlc.c
@@
-275,7
+275,11
@@
osi_dnlc_lookup(struct vcache *adp, char *aname, int locktype)
return 0;
}
#else
- osi_vnhold(tvc, 0);
+ if (osi_vnhold(tvc) != 0) {
+ dnlcstats.misses++;
+ osi_dnlc_remove(adp, aname, tvc);
+ tvc = NULL;
+ }
#endif
ReleaseReadLock(&afs_xvcache);