mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 21:47:45 +00:00
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 <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
1519144f83
commit
98c6aadfa1
@ -2790,6 +2790,7 @@ afs_NFSFindVCache(struct vcache **avcp, struct VenusFid *afid)
|
|||||||
tvc = found_tvc;
|
tvc = found_tvc;
|
||||||
/* should I have a read lock on the vnode here? */
|
/* should I have a read lock on the vnode here? */
|
||||||
if (tvc) {
|
if (tvc) {
|
||||||
|
#ifndef AFS_DARWIN80_ENV
|
||||||
#if defined(AFS_SGI_ENV) && !defined(AFS_SGI53_ENV)
|
#if defined(AFS_SGI_ENV) && !defined(AFS_SGI53_ENV)
|
||||||
afs_int32 retry = 0;
|
afs_int32 retry = 0;
|
||||||
osi_vnhold(tvc, &retry);
|
osi_vnhold(tvc, &retry);
|
||||||
@ -2802,6 +2803,7 @@ afs_NFSFindVCache(struct vcache **avcp, struct VenusFid *afid)
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
osi_vnhold(tvc, (int *)0); /* already held, above */
|
osi_vnhold(tvc, (int *)0); /* already held, above */
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
* We obtained the xvcache lock above.
|
* We obtained the xvcache lock above.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user