- if (!su) {
- /*
- * Also, once it's no longer in
- * use by any maps, move it to
- * the inactive queue instead.
- */
-
- vm_page_deactivate(m);
- pmap_remove_all(VM_PAGE_TO_PHYS(m));
- }
- else {
- /*
- * Old page is only (possibly)
- * in use by faulting map. We
- * should do a pmap_remove on
- * that mapping, but we know
- * that pmap_enter will remove
- * the old mapping before
- * inserting the new one.
- */
- vm_page_activate(m);
- }