1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-01 12:19:28 +00:00

o Use pmap_page_is_mapped() in vm_page_protect() rather than the PG_MAPPED

flag.  (This is the only place in the entire kernel where the PG_MAPPED
   flag is tested.  It will be removed soon.)
This commit is contained in:
Alan Cox 2002-08-08 19:12:36 +00:00
parent 1f5488043d
commit 06ec58b740
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101543

View File

@ -445,7 +445,7 @@ void
vm_page_protect(vm_page_t mem, int prot)
{
if (prot == VM_PROT_NONE) {
if (mem->flags & (PG_WRITEABLE|PG_MAPPED)) {
if (pmap_page_is_mapped(mem) || (mem->flags & PG_WRITEABLE)) {
pmap_page_protect(mem, VM_PROT_NONE);
vm_page_flag_clear(mem, PG_WRITEABLE|PG_MAPPED);
}