aboutsummaryrefslogtreecommitdiff
path: root/sys/vm
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2003-02-24 17:30:45 +0000
committerAlan Cox <alc@FreeBSD.org>2003-02-24 17:30:45 +0000
commit3fa24ec9f12b190d3cc7b18e93e7304fde2ffe37 (patch)
treefe1d4aa1bf54a7cb3725923ca611df8e849350ae /sys/vm
parentd57270f76891e7adcb85ea31d3d4fed2249f17bc (diff)
downloadsrc-3fa24ec9f12b190d3cc7b18e93e7304fde2ffe37.tar.gz
src-3fa24ec9f12b190d3cc7b18e93e7304fde2ffe37.zip
In vm_page_dirty(), assert that the page is not in the free queue(s).
Notes
Notes: svn path=/head/; revision=111434
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_page.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index 356d25298b9d..cbdcc4c6fc34 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -447,6 +447,8 @@ vm_page_dirty(vm_page_t m)
{
KASSERT(m->queue - m->pc != PQ_CACHE,
("vm_page_dirty: page in cache!"));
+ KASSERT(m->queue - m->pc != PQ_FREE,
+ ("vm_page_dirty: page is free!"));
m->dirty = VM_PAGE_BITS_ALL;
}