Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161603753
D45368.id139110.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
837 B
Referenced Files
None
Subscribers
None
D45368.id139110.diff
View Options
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c
--- a/sys/vm/uma_core.c
+++ b/sys/vm/uma_core.c
@@ -2523,7 +2523,7 @@
* If we haven't booted yet we need allocations to go through the
* startup cache until the vm is ready.
*/
-#ifdef UMA_MD_SMALL_ALLOC
+#ifdef UMA_USE_DMAP
if (keg->uk_ppera == 1)
keg->uk_allocf = uma_small_alloc;
else
@@ -2536,7 +2536,7 @@
keg->uk_allocf = contig_alloc;
else
keg->uk_allocf = page_alloc;
-#ifdef UMA_MD_SMALL_ALLOC
+#ifdef UMA_USE_DMAP
if (keg->uk_ppera == 1)
keg->uk_freef = uma_small_free;
else
@@ -5221,7 +5221,7 @@
keg->uk_kva = kva;
keg->uk_offset = 0;
zone->uz_max_items = pages * keg->uk_ipers;
-#ifdef UMA_MD_SMALL_ALLOC
+#ifdef UMA_USE_DMAP
keg->uk_allocf = (keg->uk_ppera > 1) ? noobj_alloc : uma_small_alloc;
#else
keg->uk_allocf = noobj_alloc;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jul 6, 6:38 AM (2 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34670472
Default Alt Text
D45368.id139110.diff (837 B)
Attached To
Mode
D45368: uma: Fix improper uses of UMA_MD_SMALL_ALLOC
Attached
Detach File
Event Timeline
Log In to Comment