diff options
author | dyson <dyson@FreeBSD.org> | 1996-05-24 05:20:15 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1996-05-24 05:20:15 +0000 |
commit | a7dfed03c3addd66d55325629614e8fb46e53a5e (patch) | |
tree | 446dab9870a5275030386948889d27879c984b4c /sys/vm | |
parent | 55bfe202846042331cd2ed94c7277325278c04ef (diff) | |
download | FreeBSD-src-a7dfed03c3addd66d55325629614e8fb46e53a5e.zip FreeBSD-src-a7dfed03c3addd66d55325629614e8fb46e53a5e.tar.gz |
Add an assert to vm_page_cache. We should never cache a dirty page.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_page.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 7a95941..af599af 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)vm_page.c 7.4 (Berkeley) 5/7/91 - * $Id: vm_page.c,v 1.50 1996/03/28 04:53:27 dyson Exp $ + * $Id: vm_page.c,v 1.51 1996/05/18 03:37:57 dyson Exp $ */ /* @@ -911,6 +911,9 @@ vm_page_cache(m) return; vm_page_protect(m, VM_PROT_NONE); + if (m->dirty != 0) { + panic("vm_page_cache: caching a dirty page, pindex: %d", m->pindex); + } s = splvm(); vm_page_unqueue(m); TAILQ_INSERT_TAIL(&vm_page_queue_cache, m, pageq); |