mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-15 15:06:42 +00:00
Clear PG_MAPPED as well as PG_WRITEABLE when a page is moved to the
cache.
This commit is contained in:
parent
d044d7bfb6
commit
e1a4feafd0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=43128
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)vm_page.c 7.4 (Berkeley) 5/7/91
|
||||
* $Id: vm_page.c,v 1.118 1999/01/21 10:01:49 dillon Exp $
|
||||
* $Id: vm_page.c,v 1.119 1999/01/24 01:04:04 dillon Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1542,11 +1542,11 @@ vm_page_cache(m)
|
||||
|
||||
/*
|
||||
* Remove all pmaps and indicate that the page is not
|
||||
* writeable.
|
||||
* writeable or mapped.
|
||||
*/
|
||||
|
||||
vm_page_protect(m, VM_PROT_NONE);
|
||||
vm_page_flag_clear(m, PG_WRITEABLE);
|
||||
vm_page_flag_clear(m, PG_WRITEABLE | PG_MAPPED);
|
||||
#if !defined(MAX_PERF)
|
||||
if (m->dirty != 0) {
|
||||
panic("vm_page_cache: caching a dirty page, pindex: %d", m->pindex);
|
||||
|
Loading…
Reference in New Issue
Block a user