diff options
author | alc <alc@FreeBSD.org> | 2003-02-24 17:30:45 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2003-02-24 17:30:45 +0000 |
commit | 92c44b28956749b18b9b151a432ae7c98acea800 (patch) | |
tree | fe1d4aa1bf54a7cb3725923ca611df8e849350ae | |
parent | f1e66099ca2b902f4e4d04085bd86adf0fff3121 (diff) | |
download | FreeBSD-src-92c44b28956749b18b9b151a432ae7c98acea800.zip FreeBSD-src-92c44b28956749b18b9b151a432ae7c98acea800.tar.gz |
In vm_page_dirty(), assert that the page is not in the free queue(s).
-rw-r--r-- | sys/vm/vm_page.c | 2 |
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; } |