Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump/rumpkern Correction to previous - set VI_PA...



details:   https://anonhg.NetBSD.org/src/rev/7e31b36a9516
branches:  trunk
changeset: 1010796:7e31b36a9516
user:      ad <ad%NetBSD.org@localhost>
date:      Sat Jun 06 22:31:40 2020 +0000

description:
Correction to previous - set VI_PAGES correctly.

diffstat:

 sys/rump/librump/rumpkern/vm.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r cdeeb7622b50 -r 7e31b36a9516 sys/rump/librump/rumpkern/vm.c
--- a/sys/rump/librump/rumpkern/vm.c    Sat Jun 06 22:28:07 2020 +0000
+++ b/sys/rump/librump/rumpkern/vm.c    Sat Jun 06 22:31:40 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm.c,v 1.188 2020/06/03 22:25:49 ad Exp $      */
+/*     $NetBSD: vm.c,v 1.189 2020/06/06 22:31:40 ad Exp $      */
 
 /*
  * Copyright (c) 2007-2011 Antti Kantee.  All Rights Reserved.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm.c,v 1.188 2020/06/03 22:25:49 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm.c,v 1.189 2020/06/06 22:31:40 ad Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -176,7 +176,6 @@
                pool_cache_put(&pagecache, pg);
                return NULL;
        }
-       uobj->uo_npages++;
 
        if (UVM_OBJ_IS_VNODE(uobj)) {
                if (uobj->uo_npages == 0) {
@@ -187,6 +186,7 @@
                }
                pg->flags |= PG_FILE;
        }
+       uobj->uo_npages++;
 
        pg->flags = PG_CLEAN|PG_BUSY|PG_FAKE;
        if (flags & UVM_PGA_ZERO) {



Home | Main Index | Thread Index | Old Index