Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm uao_put: don't skip loaned or wired pages.



details:   https://anonhg.NetBSD.org/src/rev/c2d7533d17ac
branches:  trunk
changeset: 584388:c2d7533d17ac
user:      yamt <yamt%NetBSD.org@localhost>
date:      Wed Sep 14 20:25:21 2005 +0000

description:
uao_put: don't skip loaned or wired pages.

diffstat:

 sys/uvm/uvm_aobj.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (29 lines):

diff -r 65bce8da2866 -r c2d7533d17ac sys/uvm/uvm_aobj.c
--- a/sys/uvm/uvm_aobj.c        Wed Sep 14 20:20:15 2005 +0000
+++ b/sys/uvm/uvm_aobj.c        Wed Sep 14 20:25:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_aobj.c,v 1.72 2005/09/13 22:00:05 yamt Exp $       */
+/*     $NetBSD: uvm_aobj.c,v 1.73 2005/09/14 20:25:21 yamt Exp $       */
 
 /*
  * Copyright (c) 1998 Chuck Silvers, Charles D. Cranor and
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_aobj.c,v 1.72 2005/09/13 22:00:05 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_aobj.c,v 1.73 2005/09/14 20:25:21 yamt Exp $");
 
 #include "opt_uvmhist.h"
 
@@ -871,10 +871,6 @@
                        if (uobj->uo_refs > 1)
                                goto deactivate_it;
 
-                       /* XXX skip the page if it's loaned or wired */
-                       if (pg->loan_count != 0 || pg->wire_count != 0)
-                               continue;
-
                        /*
                         * wait and try again if the page is busy.
                         * otherwise free the swap slot and the page.



Home | Main Index | Thread Index | Old Index