mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-15 15:06:42 +00:00
Add an assert to vm_page_cache. We should never cache a dirty page.
This commit is contained in:
parent
1eeaa1e31f
commit
f777ab7b8b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=15890
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user