]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
macos nfs translator vnode ref fix
authorDerrick Brashear <shadow@dementia.org>
Wed, 15 Dec 2010 10:22:26 +0000 (05:22 -0500)
committerDerrick Brashear <shadow@dementia.org>
Thu, 16 Dec 2010 17:48:01 +0000 (09:48 -0800)
code won't trigger today but we might as well get it right.
we already ref the vnode. don't leak refs.

Change-Id: I6752819239cd3a88e1782596554595c3e862c413
Reviewed-on: http://gerrit.openafs.org/3535
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/afs/afs_vcache.c

index afb4bc7fcb7468e723a9ccf866b0c4b5954f6cb7..20711d07397580ef47e58b537d3677c83713b42c 100644 (file)
@@ -2789,6 +2789,7 @@ afs_NFSFindVCache(struct vcache **avcp, struct VenusFid *afid)
     tvc = found_tvc;
     /* should I have a read lock on the vnode here? */
     if (tvc) {
+#ifndef AFS_DARWIN80_ENV
 #if defined(AFS_SGI_ENV) && !defined(AFS_SGI53_ENV)
        afs_int32 retry = 0;
        osi_vnhold(tvc, &retry);
@@ -2801,6 +2802,7 @@ afs_NFSFindVCache(struct vcache **avcp, struct VenusFid *afid)
        }
 #else
        osi_vnhold(tvc, (int *)0);      /* already held, above */
+#endif
 #endif
        /*
         * We obtained the xvcache lock above.