Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm in uvm_vnp_setsize(), wait for any i/o in progress o...



details:   https://anonhg.NetBSD.org/src/rev/137f7a5b6357
branches:  trunk
changeset: 519942:137f7a5b6357
user:      chs <chs%NetBSD.org@localhost>
date:      Mon Dec 31 07:00:15 2001 +0000

description:
in uvm_vnp_setsize(), wait for any i/o in progress on pages that we free.

diffstat:

 sys/uvm/uvm_vnode.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b0cea66487be -r 137f7a5b6357 sys/uvm/uvm_vnode.c
--- a/sys/uvm/uvm_vnode.c       Mon Dec 31 06:44:58 2001 +0000
+++ b/sys/uvm/uvm_vnode.c       Mon Dec 31 07:00:15 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_vnode.c,v 1.56 2001/12/09 03:07:44 chs Exp $       */
+/*     $NetBSD: uvm_vnode.c,v 1.57 2001/12/31 07:00:15 chs Exp $       */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -50,7 +50,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_vnode.c,v 1.56 2001/12/09 03:07:44 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_vnode.c,v 1.57 2001/12/31 07:00:15 chs Exp $");
 
 #include "fs_nfs.h"
 #include "opt_uvmhist.h"
@@ -461,7 +461,7 @@
         */
 
        if (vp->v_size > pgend && vp->v_size != VSIZENOTSET) {
-               (void) uvn_put(uobj, pgend, 0, PGO_FREE);
+               (void) uvn_put(uobj, pgend, 0, PGO_FREE | PGO_SYNCIO);
        } else {
                simple_unlock(&uobj->vmobjlock);
        }



Home | Main Index | Thread Index | Old Index