mirror of https://github.com/schoebel/mars
mem: make brick_mem_reserve reentrant
This commit is contained in:
parent
47f71d83cf
commit
fe33ab7ba1
|
@ -708,7 +708,7 @@ int brick_mem_reserve(void)
|
|||
int i;
|
||||
|
||||
brick_mem_freelist_max[order] += max;
|
||||
BRICK_INF("preallocating %d at order %d (new maxlevel = %d)\n", max, order, brick_mem_freelist_max[order]);
|
||||
brick_pre_reserve[order] = 0;
|
||||
|
||||
max = brick_mem_freelist_max[order] - atomic_read(&freelist_count[order]);
|
||||
if (max >= 0) {
|
||||
|
|
Loading…
Reference in New Issue