summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_map.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2002-03-20 04:02:59 +0000
committerjeff <jeff@FreeBSD.org>2002-03-20 04:02:59 +0000
commit9ef9bf2eafae98b3e22da0b2e655ede34057de17 (patch)
tree1e883c02c1bb30635d6a0ff508ddb7d597b21997 /sys/vm/vm_map.c
parent8c4c86de23351a059da32e84dccff0bbbc8d3c48 (diff)
downloadFreeBSD-src-9ef9bf2eafae98b3e22da0b2e655ede34057de17.zip
FreeBSD-src-9ef9bf2eafae98b3e22da0b2e655ede34057de17.tar.gz
Remove references to vm_zone.h and switch over to the new uma API.
Diffstat (limited to 'sys/vm/vm_map.c')
-rw-r--r--sys/vm/vm_map.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index 0c6c84f..0fc76a3 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -89,6 +89,7 @@
#include <vm/vm_kern.h>
#include <vm/vm_extern.h>
#include <vm/swap_pager.h>
+#include <vm/uma.h>
/*
* Virtual memory maps provide for the mapping, protection,
@@ -157,8 +158,11 @@ vm_map_startup(void)
#endif
vm_map_zinit, vm_map_zfini, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
uma_prealloc(mapzone, MAX_KMAP);
- kmapentzone = zinit("KMAP ENTRY", sizeof(struct vm_map_entry), 0, 0, 0); uma_prealloc(kmapentzone, MAX_KMAPENT);
- mapentzone = zinit("MAP ENTRY", sizeof(struct vm_map_entry), 0, 0, 0);
+ kmapentzone = uma_zcreate("KMAP ENTRY", sizeof(struct vm_map_entry),
+ NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
+ uma_prealloc(kmapentzone, MAX_KMAPENT);
+ mapentzone = uma_zcreate("MAP ENTRY", sizeof(struct vm_map_entry),
+ NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
uma_prealloc(mapentzone, MAX_MAPENT);
}
OpenPOWER on IntegriCloud