blob: bef36f13d328e617911c107ff4f7390ccdf42931 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
2007-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
* kern/zalloc.c (zget_space): Align zalloc_next_space again after
calling kmem_alloc_wired (which may sleep).
Index: b/kern/zalloc.c
===================================================================
--- a/kern/zalloc.c
+++ b/kern/zalloc.c
@@ -320,6 +320,8 @@ static vm_offset_t zget_space(vm_offset_
zone_page_init(new_space, space_to_add,
ZONE_PAGE_USED);
simple_lock(&zget_space_lock);
+ if (align > 0)
+ ALIGN_SIZE_UP(zalloc_next_space, align);
continue;
}
|