Remove unneeded calls to pmap_remove_all(). The given page is not mapped.

Reviewed by: tegge
This commit is contained in:
Alan Cox 2005-12-11 22:06:57 +00:00
parent 2694019753
commit 05406e6f33
2 changed files with 0 additions and 2 deletions

View File

@ -838,7 +838,6 @@ exec_map_first_page(imgp)
(ma[0]->valid == 0)) {
if (ma[0]) {
vm_page_lock_queues();
pmap_remove_all(ma[0]);
vm_page_free(ma[0]);
vm_page_unlock_queues();
}

View File

@ -745,7 +745,6 @@ RetryFault:;
/*
* get rid of the unnecessary page
*/
pmap_remove_all(fs.first_m);
vm_page_free(fs.first_m);
/*
* grab the page and put it into the