Page MenuHomeFreeBSD

D56140.diff
No OneTemporary

D56140.diff

diff --git a/sys/vm/vm_swapout.c b/sys/vm/vm_swapout.c
--- a/sys/vm/vm_swapout.c
+++ b/sys/vm/vm_swapout.c
@@ -222,13 +222,11 @@
{
vm_map_entry_t tmpe;
vm_object_t obj, bigobj;
- int nothingwired;
if (!vm_map_trylock_read(map))
return;
bigobj = NULL;
- nothingwired = TRUE;
/*
* first, search out the biggest object, and try to free pages from
@@ -249,8 +247,6 @@
VM_OBJECT_RUNLOCK(obj);
}
}
- if (tmpe->wired_count > 0)
- nothingwired = FALSE;
}
if (bigobj != NULL) {
@@ -275,15 +271,6 @@
}
}
- /*
- * Remove all mappings if a process is swapped out, this will free page
- * table pages.
- */
- if (desired == 0 && nothingwired) {
- pmap_remove(vm_map_pmap(map), vm_map_min(map),
- vm_map_max(map));
- }
-
vm_map_unlock_read(map);
}

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 16, 7:15 AM (13 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35128942
Default Alt Text
D56140.diff (801 B)

Event Timeline