Fixed bug where vnode_pager_uncache() wasn't always called when it should

be. The result was that the file's space wouldn't be properly freed when
it was deleted.

Submitted by:	John Dyson
This commit is contained in:
David Greenman 1995-08-06 11:55:25 +00:00
parent 640f8c189b
commit 75d8591e04
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9966
2 changed files with 4 additions and 6 deletions

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_serv.c 8.3 (Berkeley) 1/12/94
* $Id: nfs_serv.c,v 1.20 1995/08/02 10:12:47 dfr Exp $
* $Id: nfs_serv.c,v 1.21 1995/08/03 12:14:16 dfr Exp $
*/
/*
@ -1706,8 +1706,7 @@ nfsrv_remove(nfsd, slp, procp, mrq)
error = EBUSY;
goto out;
}
if (vp->v_flag & VTEXT)
(void) vnode_pager_uncache(vp);
vnode_pager_uncache(vp);
out:
if (!error) {
int deallocobj = 0;

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_serv.c 8.3 (Berkeley) 1/12/94
* $Id: nfs_serv.c,v 1.20 1995/08/02 10:12:47 dfr Exp $
* $Id: nfs_serv.c,v 1.21 1995/08/03 12:14:16 dfr Exp $
*/
/*
@ -1706,8 +1706,7 @@ nfsrv_remove(nfsd, slp, procp, mrq)
error = EBUSY;
goto out;
}
if (vp->v_flag & VTEXT)
(void) vnode_pager_uncache(vp);
vnode_pager_uncache(vp);
out:
if (!error) {
int deallocobj = 0;