Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm uvm_pageunwire: use uvm_pageactivate rather than a c...



details:   https://anonhg.NetBSD.org/src/rev/84c77ab13145
branches:  trunk
changeset: 588224:84c77ab13145
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sun Feb 12 09:19:27 2006 +0000

description:
uvm_pageunwire: use uvm_pageactivate rather than a copy.

diffstat:

 sys/uvm/uvm_page.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (29 lines):

diff -r 59fae5478859 -r 84c77ab13145 sys/uvm/uvm_page.c
--- a/sys/uvm/uvm_page.c        Sun Feb 12 07:14:34 2006 +0000
+++ b/sys/uvm/uvm_page.c        Sun Feb 12 09:19:27 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_page.c,v 1.110 2006/02/11 12:45:07 yamt Exp $      */
+/*     $NetBSD: uvm_page.c,v 1.111 2006/02/12 09:19:27 yamt Exp $      */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.110 2006/02/11 12:45:07 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.111 2006/02/12 09:19:27 yamt Exp $");
 
 #include "opt_uvmhist.h"
 
@@ -1682,9 +1682,7 @@
        UVM_LOCK_ASSERT_PAGEQ();
        pg->wire_count--;
        if (pg->wire_count == 0) {
-               TAILQ_INSERT_TAIL(&uvm.page_active, pg, pageq);
-               uvmexp.active++;
-               pg->pqflags |= PQ_ACTIVE;
+               uvm_pageactivate(pg);
                uvmexp.wired--;
        }
 }



Home | Main Index | Thread Index | Old Index