From: Derrick Brashear Date: Wed, 15 Dec 2010 10:22:26 +0000 (-0500) Subject: macos nfs translator vnode ref fix X-Git-Tag: upstream/1.8.0_pre1^2~4362 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=98c6aadfa1c438fc9ae2cc47ddec739d0c7a8b8b;p=packages%2Fo%2Fopenafs.git macos nfs translator vnode ref fix code won't trigger today but we might as well get it right. we already ref the vnode. don't leak refs. Change-Id: Ib2aa87ffbb8c6bbd38d8858328d26f1a37cf04b9 Reviewed-on: http://gerrit.openafs.org/3532 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/afs/afs_vcache.c b/src/afs/afs_vcache.c index 4ad9855fc..26ed2c2be 100644 --- a/src/afs/afs_vcache.c +++ b/src/afs/afs_vcache.c @@ -2790,6 +2790,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); @@ -2802,6 +2803,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.