summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_map.c
diff options
context:
space:
mode:
authorStefan Kempf <stefan@cvs.openbsd.org>2016-05-08 16:29:58 +0000
committerStefan Kempf <stefan@cvs.openbsd.org>2016-05-08 16:29:58 +0000
commit7365e475047fcfe8ce1b68f379c6cd790c4ea85d (patch)
tree7bb1b97fc2c17b86015c7eaf951e753ca48de8e1 /sys/uvm/uvm_map.c
parent0217dbc1f7efa91e79932688c7212bb5e1f6cddb (diff)
Additional parameter for amap_alloc().
It is supposed to control whether an amap should allocate memory to store anon pointers lazily or upfront. Needed for upcoming amap changes. ok kettenis@
Diffstat (limited to 'sys/uvm/uvm_map.c')
-rw-r--r--sys/uvm/uvm_map.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c
index aa951176026..7629829280f 100644
--- a/sys/uvm/uvm_map.c
+++ b/sys/uvm/uvm_map.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_map.c,v 1.212 2016/05/05 11:23:39 stefan Exp $ */
+/* $OpenBSD: uvm_map.c,v 1.213 2016/05/08 16:29:57 stefan Exp $ */
/* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */
/*
@@ -1064,7 +1064,7 @@ uvm_mapanon(struct vm_map *map, vaddr_t *addr, vsize_t sz,
if (flags & UVM_FLAG_OVERLAY) {
KERNEL_LOCK();
entry->aref.ar_pageoff = 0;
- entry->aref.ar_amap = amap_alloc(sz, M_WAITOK);
+ entry->aref.ar_amap = amap_alloc(sz, M_WAITOK, 0);
KERNEL_UNLOCK();
}
@@ -1320,7 +1320,7 @@ uvm_map(struct vm_map *map, vaddr_t *addr, vsize_t sz,
}
if (flags & UVM_FLAG_OVERLAY) {
entry->aref.ar_pageoff = 0;
- entry->aref.ar_amap = amap_alloc(sz, M_WAITOK);
+ entry->aref.ar_amap = amap_alloc(sz, M_WAITOK, 0);
}
/* Update map and process statistics. */