Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ffs For the UVM_PAGE_TRKOWN test do not require that...



details:   https://anonhg.NetBSD.org/src/rev/e799112d118d
branches:  trunk
changeset: 752269:e799112d118d
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun Feb 21 13:55:58 2010 +0000

description:
For the UVM_PAGE_TRKOWN test do not require that the relevant pages
must exist.

diffstat:

 sys/ufs/ffs/ffs_alloc.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (38 lines):

diff -r 3b08898cbeb1 -r e799112d118d sys/ufs/ffs/ffs_alloc.c
--- a/sys/ufs/ffs/ffs_alloc.c   Sun Feb 21 13:28:12 2010 +0000
+++ b/sys/ufs/ffs/ffs_alloc.c   Sun Feb 21 13:55:58 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_alloc.c,v 1.124 2009/05/07 19:26:09 elad Exp $     */
+/*     $NetBSD: ffs_alloc.c,v 1.125 2010/02/21 13:55:58 mlelstv Exp $  */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.124 2009/05/07 19:26:09 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.125 2010/02/21 13:55:58 mlelstv Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ffs.h"
@@ -194,8 +194,7 @@
                mutex_enter(&uobj->vmobjlock);
                while (off < endoff) {
                        pg = uvm_pagelookup(uobj, off);
-                       KASSERT(pg != NULL);
-                       KASSERT(pg->owner == curproc->p_pid);
+                       KASSERT(pg == NULL || pg->owner == curproc->p_pid);
                        off += PAGE_SIZE;
                }
                mutex_exit(&uobj->vmobjlock);
@@ -302,8 +301,7 @@
                mutex_enter(&uobj->vmobjlock);
                while (off < endoff) {
                        pg = uvm_pagelookup(uobj, off);
-                       KASSERT(pg != NULL);
-                       KASSERT(pg->owner == curproc->p_pid);
+                       KASSERT(pg == NULL || pg->owner == curproc->p_pid);
                        KASSERT((pg->flags & PG_CLEAN) == 0);
                        off += PAGE_SIZE;
                }



Home | Main Index | Thread Index | Old Index