summaryrefslogtreecommitdiff
path: root/sys/uvm
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2015-08-27 21:58:16 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2015-08-27 21:58:16 +0000
commit5bb58a2fa7bc8e30417a4bd97683d0f13f9c1465 (patch)
treeff554b276535aab0c2ae94a67019b4acfb21aeca /sys/uvm
parent9900512ce1d77f83e28bebe13f78219d44a29b70 (diff)
After more than a decade it seems safe to conclude that amap_clean works.
ok mpi@, visa@
Diffstat (limited to 'sys/uvm')
-rw-r--r--sys/uvm/uvm_map.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c
index c83a303febd..dc2ba713cfa 100644
--- a/sys/uvm/uvm_map.c
+++ b/sys/uvm/uvm_map.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_map.c,v 1.194 2015/08/21 16:04:35 visa Exp $ */
+/* $OpenBSD: uvm_map.c,v 1.195 2015/08/27 21:58:15 kettenis Exp $ */
/* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */
/*
@@ -4160,7 +4160,6 @@ fail:
* => caller must not write-lock map (read OK).
* => we may sleep while cleaning if SYNCIO [with map read-locked]
*/
-int amap_clean_works = 1; /* XXX for now, just in case... */
int
uvm_map_clean(struct vm_map *map, vaddr_t start, vaddr_t end, int flags)
@@ -4216,8 +4215,6 @@ uvm_map_clean(struct vm_map *map, vaddr_t start, vaddr_t end, int flags)
*/
if (amap == NULL || (flags & (PGO_DEACTIVATE|PGO_FREE)) == 0)
goto flush_object;
- if (!amap_clean_works)
- goto flush_object;
cp_start = MAX(entry->start, start);
cp_end = MIN(entry->end, end);