Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm look in the right flags field for PQ_INACTIVE.



details:   https://anonhg.NetBSD.org/src/rev/267b31ab1654
branches:  trunk
changeset: 526539:267b31ab1654
user:      chs <chs%NetBSD.org@localhost>
date:      Sun May 05 16:26:17 2002 +0000

description:
look in the right flags field for PQ_INACTIVE.
make uvmpd_scan_inactive() return void since its return value is ignored.

diffstat:

 sys/uvm/uvm_pdaemon.c |  13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (62 lines):

diff -r 2909707b7a76 -r 267b31ab1654 sys/uvm/uvm_pdaemon.c
--- a/sys/uvm/uvm_pdaemon.c     Sun May 05 16:02:24 2002 +0000
+++ b/sys/uvm/uvm_pdaemon.c     Sun May 05 16:26:17 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_pdaemon.c,v 1.45 2002/01/21 14:42:27 wiz Exp $     */
+/*     $NetBSD: uvm_pdaemon.c,v 1.46 2002/05/05 16:26:17 chs Exp $     */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_pdaemon.c,v 1.45 2002/01/21 14:42:27 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_pdaemon.c,v 1.46 2002/05/05 16:26:17 chs Exp $");
 
 #include "opt_uvmhist.h"
 
@@ -100,7 +100,7 @@
  */
 
 void           uvmpd_scan __P((void));
-boolean_t      uvmpd_scan_inactive __P((struct pglist *));
+void           uvmpd_scan_inactive __P((struct pglist *));
 void           uvmpd_tune __P((void));
 
 /*
@@ -354,7 +354,7 @@
  * => we return TRUE if we are exiting because we met our target
  */
 
-boolean_t
+void
 uvmpd_scan_inactive(pglst)
        struct pglist *pglst;
 {
@@ -536,7 +536,7 @@
                                    PGO_CLEANIT|PGO_FREE);
                                uvm_lock_pageq();
                                if (nextpg &&
-                                   (nextpg->flags & PQ_INACTIVE) == 0) {
+                                   (nextpg->pqflags & PQ_INACTIVE) == 0) {
                                        nextpg = TAILQ_FIRST(pglst);
                                }
                                continue;
@@ -716,7 +716,6 @@
                        nextpg = TAILQ_FIRST(pglst);
                }
        }
-       return (error);
 }
 
 /*
@@ -772,7 +771,7 @@
         */
 
        pages_freed = uvmexp.pdfreed;
-       (void) uvmpd_scan_inactive(&uvm.page_inactive);
+       uvmpd_scan_inactive(&uvm.page_inactive);
        pages_freed = uvmexp.pdfreed - pages_freed;
 
        /*



Home | Main Index | Thread Index | Old Index