Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm in uvn_findpage(), only increment the counter of vno...



details:   https://anonhg.NetBSD.org/src/rev/4e22c8f2e7f8
branches:  trunk
changeset: 500130:4e22c8f2e7f8
user:      chs <chs%NetBSD.org@localhost>
date:      Wed Dec 06 03:37:30 2000 +0000

description:
in uvn_findpage(), only increment the counter of vnode pages
if we succeed in allocating a page.

from Lars Heidieker <lars%heidieker.de@localhost> in PR 11636.

diffstat:

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

diffs (25 lines):

diff -r b13466bf54c4 -r 4e22c8f2e7f8 sys/uvm/uvm_vnode.c
--- a/sys/uvm/uvm_vnode.c       Wed Dec 06 03:21:33 2000 +0000
+++ b/sys/uvm/uvm_vnode.c       Wed Dec 06 03:37:30 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_vnode.c,v 1.38 2000/11/30 11:04:44 simonb Exp $    */
+/*     $NetBSD: uvm_vnode.c,v 1.39 2000/12/06 03:37:30 chs Exp $       */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -947,7 +947,6 @@
                                pg = NULL;
                        } else {
                                pg = uvm_pagealloc(uobj, offset, NULL, 0);
-                               uvmexp.vnodepages++;
                        }
                        if (pg == NULL) {
                                if (flags & UFP_NOWAIT) {
@@ -959,6 +958,7 @@
                                simple_lock(&uobj->vmobjlock);
                                continue;
                        }
+                       uvmexp.vnodepages++;
                        UVMHIST_LOG(ubchist, "alloced",0,0,0,0);
                        break;
                } else if (flags & UFP_NOCACHE) {



Home | Main Index | Thread Index | Old Index