Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/yamt-pagecache]: src/sys/uvm fix an assertion
details: https://anonhg.NetBSD.org/src/rev/bd77a5e464a4
branches: yamt-pagecache
changeset: 770898:bd77a5e464a4
user: yamt <yamt%NetBSD.org@localhost>
date: Mon Apr 22 13:09:02 2013 +0000
description:
fix an assertion
diffstat:
sys/uvm/uvm_page.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 14b06833e836 -r bd77a5e464a4 sys/uvm/uvm_page.c
--- a/sys/uvm/uvm_page.c Mon Apr 22 13:08:06 2013 +0000
+++ b/sys/uvm/uvm_page.c Mon Apr 22 13:09:02 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_page.c,v 1.178.2.14 2012/04/17 00:09:00 yamt Exp $ */
+/* $NetBSD: uvm_page.c,v 1.178.2.15 2013/04/22 13:09:02 yamt Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.178.2.14 2012/04/17 00:09:00 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.178.2.15 2013/04/22 13:09:02 yamt Exp $");
#include "opt_ddb.h"
#include "opt_uvmhist.h"
@@ -86,7 +86,8 @@
#include <uvm/uvm_ddb.h>
#include <uvm/uvm_pdpolicy.h>
-CTASSERT(UVM_PAGE_DIRTY_TAG < RADIX_TREE_TAG_ID_MAX);
+CTASSERT(UVM_PAGE_DIRTY_TAG < (1 << RADIX_TREE_TAG_ID_MAX));
+CTASSERT(UVM_PAGE_WRITEBACK_TAG < (1 << RADIX_TREE_TAG_ID_MAX));
/*
* global vars... XXXCDC: move to uvm. structure.
Home |
Main Index |
Thread Index |
Old Index