Fixed a vnode reference leak in nfsrv_rename(). The target inode wasn't

released until the file system was unmounted.  This bug also affected
kern/vfs_syscalls.c but was fixed in rev.1.18 and rev.1.20 there.

Reviewed by:	davidg
This commit is contained in:
bde 1996-06-08 12:16:26 +00:00
parent 28aa321a11
commit 10d2a11249
2 changed files with 4 additions and 2 deletions

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_serv.c 8.3 (Berkeley) 1/12/94
* $Id: nfs_serv.c,v 1.28 1996/01/13 23:27:48 phk Exp $
* $Id: nfs_serv.c,v 1.29 1996/04/30 23:23:07 bde Exp $
*/
/*
@ -1907,6 +1907,7 @@ nfsrv_rename(nfsd, slp, procp, mrq)
nqsrv_getl(tvp, ND_WRITE);
if ((tvp->v_flag & VVMIO) && tvp->v_object)
deallocobjto = 1;
(void) vnode_pager_uncache(tvp);
}
if ((fvp->v_flag & VVMIO) && fvp->v_object)
deallocobjfrom = 1;

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_serv.c 8.3 (Berkeley) 1/12/94
* $Id: nfs_serv.c,v 1.28 1996/01/13 23:27:48 phk Exp $
* $Id: nfs_serv.c,v 1.29 1996/04/30 23:23:07 bde Exp $
*/
/*
@ -1907,6 +1907,7 @@ nfsrv_rename(nfsd, slp, procp, mrq)
nqsrv_getl(tvp, ND_WRITE);
if ((tvp->v_flag & VVMIO) && tvp->v_object)
deallocobjto = 1;
(void) vnode_pager_uncache(tvp);
}
if ((fvp->v_flag & VVMIO) && fvp->v_object)
deallocobjfrom = 1;