There's no need to call pmap_vac_me_harder() in pmap_protect(), as it

already happened in pmap_modify_pv().

Submitted by:	Mark Tinguely <tinguely AT casselton DOT net>
This commit is contained in:
Olivier Houchard 2007-12-11 20:35:44 +00:00
parent 6029ad9932
commit c8ffd860a5

View File

@ -3277,7 +3277,6 @@ pmap_protect(pmap_t pm, vm_offset_t sva, vm_offset_t eva, vm_prot_t prot)
if (pg != NULL) {
f = pmap_modify_pv(pg, pm, sva,
PVF_WRITE, 0);
pmap_vac_me_harder(pg, pm, sva);
vm_page_dirty(pg);
} else
f = PVF_REF | PVF_EXEC;