diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 488fc59d9aa3..65222363c747 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -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(); } diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index e0e238383d4e..e50d4edd3712 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -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