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 Correct previous. Skip marker pag...



details:   https://anonhg.NetBSD.org/src/rev/b0cda4b9a924
branches:  trunk
changeset: 756712:b0cda4b9a924
user:      hannken <hannken%NetBSD.org@localhost>
date:      Thu Jul 29 15:13:00 2010 +0000

description:
Correct previous.  Skip marker pages in uvm_pagelookup().
Already awake :-)

diffstat:

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

diffs (27 lines):

diff -r a54981f8c1e8 -r b0cda4b9a924 sys/rump/librump/rumpkern/vm.c
--- a/sys/rump/librump/rumpkern/vm.c    Thu Jul 29 15:04:04 2010 +0000
+++ b/sys/rump/librump/rumpkern/vm.c    Thu Jul 29 15:13:00 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm.c,v 1.86 2010/07/29 15:04:04 pooka Exp $    */
+/*     $NetBSD: vm.c,v 1.87 2010/07/29 15:13:00 hannken Exp $  */
 
 /*
  * Copyright (c) 2007-2010 Antti Kantee.  All Rights Reserved.
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm.c,v 1.86 2010/07/29 15:04:04 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm.c,v 1.87 2010/07/29 15:13:00 hannken Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -459,6 +459,8 @@
        struct vm_page *pg;
 
        TAILQ_FOREACH(pg, &uobj->memq, listq.queue) {
+               if ((pg->flags & PG_MARKER) != 0)
+                       continue;
                if (pg->offset == off) {
                        return pg;
                }



Home | Main Index | Thread Index | Old Index