summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_pageout.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2014-02-16 20:54:26 +0000
committermarcel <marcel@FreeBSD.org>2014-02-16 20:54:26 +0000
commit60764eb6dd4b84dddd7e225bcaee1143299a4cda (patch)
treeb708537df36320fe66fd8b51d9a8de1398ed870f /sys/vm/vm_pageout.c
parent3869d9ba6906c400c95cef6c092ca6f707c88671 (diff)
downloadFreeBSD-src-60764eb6dd4b84dddd7e225bcaee1143299a4cda.zip
FreeBSD-src-60764eb6dd4b84dddd7e225bcaee1143299a4cda.tar.gz
MFC r259908:
For ia64, use pmap_remove_pages() and not pmap_remove().
Diffstat (limited to 'sys/vm/vm_pageout.c')
-rw-r--r--sys/vm/vm_pageout.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c
index e19ef1f..60d1476 100644
--- a/sys/vm/vm_pageout.c
+++ b/sys/vm/vm_pageout.c
@@ -875,6 +875,14 @@ vm_pageout_map_deactivate_pages(map, desired)
tmpe = tmpe->next;
}
+#ifdef __ia64__
+ /*
+ * Remove all non-wired, managed mappings if a process is swapped out.
+ * This will free page table pages.
+ */
+ if (desired == 0)
+ pmap_remove_pages(map->pmap);
+#else
/*
* Remove all mappings if a process is swapped out, this will free page
* table pages.
@@ -883,6 +891,8 @@ vm_pageout_map_deactivate_pages(map, desired)
pmap_remove(vm_map_pmap(map), vm_map_min(map),
vm_map_max(map));
}
+#endif
+
vm_map_unlock(map);
}
#endif /* !defined(NO_SWAPPING) */
OpenPOWER on IntegriCloud