aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNathan Whitehorn <nwhitehorn@FreeBSD.org>2012-01-17 00:31:09 +0000
committerNathan Whitehorn <nwhitehorn@FreeBSD.org>2012-01-17 00:31:09 +0000
commit8d01a3b28164abccb978ea0993550be4da568b28 (patch)
treea8bcf04d9d76fa2dc411e12855d1b9cca081d69d /sys
parent292177e67accaef5acedda3c3b29d72022aba72b (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/vm_pageout.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c
index 5dd450e1bb3fd..7e63689759601 100644
--- a/sys/vm/vm_pageout.c
+++ b/sys/vm/vm_pageout.c
@@ -714,11 +714,8 @@ vm_pageout_map_deactivate_pages(map, desired)
* table pages.
*/
if (desired == 0 && nothingwired) {
- tmpe = map->header.next;
- while (tmpe != &map->header) {
- pmap_remove(vm_map_pmap(map), tmpe->start, tmpe->end);
- tmpe = tmpe->next;
- }
+ pmap_remove(vm_map_pmap(map), vm_map_min(map),
+ vm_map_max(map));
}
vm_map_unlock(map);
}