aboutsummaryrefslogtreecommitdiff
path: root/sys/nfsclient
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1995-02-06 02:20:40 +0000
committerDavid Greenman <dg@FreeBSD.org>1995-02-06 02:20:40 +0000
commit081129c5e39d1f59e63bacf97d7ea2eeeab5439f (patch)
tree3e751da90e57497d6dcf7e6875a22d7e1cecb4c4 /sys/nfsclient
parent30ad8d9349289bef908ed483e81a851ecfbba908 (diff)
Notes
Diffstat (limited to 'sys/nfsclient')
-rw-r--r--sys/nfsclient/nfs_subs.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/nfsclient/nfs_subs.c b/sys/nfsclient/nfs_subs.c
index f28136087602..7b2cf6441f61 100644
--- a/sys/nfsclient/nfs_subs.c
+++ b/sys/nfsclient/nfs_subs.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_subs.c 8.3 (Berkeley) 1/4/94
- * $Id: nfs_subs.c,v 1.7 1994/10/17 17:47:37 phk Exp $
+ * $Id: nfs_subs.c,v 1.8 1995/01/09 16:05:08 davidg Exp $
*/
/*
@@ -1207,17 +1207,20 @@ retry:
int
nfsrv_vput( struct vnode *vp) {
if( (vp->v_flag & VVMIO) && vp->v_vmdata) {
+ vput( vp);
vm_object_deallocate( (vm_object_t) vp->v_vmdata);
+ } else {
+ vput( vp);
}
- vput( vp);
return 0;
}
int
nfsrv_vrele( struct vnode *vp) {
if( (vp->v_flag & VVMIO) && vp->v_vmdata) {
+ vrele( vp);
vm_object_deallocate( (vm_object_t) vp->v_vmdata);
+ } else {
+ vrele( vp);
}
- vrele( vp);
return 0;
}
-