Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm add debugging assertion ensuring UBC_FAULTBUSY is on...



details:   https://anonhg.NetBSD.org/src/rev/aafea431b1de
branches:  trunk
changeset: 559021:aafea431b1de
user:      dbj <dbj%NetBSD.org@localhost>
date:      Fri Mar 05 20:44:01 2004 +0000

description:
add debugging assertion ensuring UBC_FAULTBUSY is only used with UBC_WRITE

diffstat:

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

diffs (26 lines):

diff -r 45321e6732a6 -r aafea431b1de sys/uvm/uvm_bio.c
--- a/sys/uvm/uvm_bio.c Fri Mar 05 20:07:27 2004 +0000
+++ b/sys/uvm/uvm_bio.c Fri Mar 05 20:44:01 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_bio.c,v 1.29 2004/01/07 12:18:16 yamt Exp $        */
+/*     $NetBSD: uvm_bio.c,v 1.30 2004/03/05 20:44:01 dbj Exp $ */
 
 /*
  * Copyright (c) 1998 Chuck Silvers.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_bio.c,v 1.29 2004/01/07 12:18:16 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_bio.c,v 1.30 2004/03/05 20:44:01 dbj Exp $");
 
 #include "opt_uvmhist.h"
 
@@ -464,6 +464,7 @@
                struct vm_page *pgs[npages];
                int gpflags = PGO_SYNCIO|PGO_OVERWRITE|PGO_PASTEOF;
                int i;
+               KDASSERT(flags & UBC_WRITE);
 
                if (umap->flags & UMAP_MAPPING_CACHED) {
                        umap->flags &= ~UMAP_MAPPING_CACHED;



Home | Main Index | Thread Index | Old Index