summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-02-24 17:30:45 +0000
committeralc <alc@FreeBSD.org>2003-02-24 17:30:45 +0000
commit92c44b28956749b18b9b151a432ae7c98acea800 (patch)
treefe1d4aa1bf54a7cb3725923ca611df8e849350ae /sys/vm
parentf1e66099ca2b902f4e4d04085bd86adf0fff3121 (diff)
downloadFreeBSD-src-92c44b28956749b18b9b151a432ae7c98acea800.zip
FreeBSD-src-92c44b28956749b18b9b151a432ae7c98acea800.tar.gz
In vm_page_dirty(), assert that the page is not in the free queue(s).
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 356d252..cbdcc4c 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;
}
OpenPOWER on IntegriCloud