mem: make brick_mem_reserve reentrant

This commit is contained in:
Thomas Schoebel-Theuer 2024-03-21 12:18:10 +01:00
parent 47f71d83cf
commit fe33ab7ba1
1 changed files with 1 additions and 1 deletions

View File

@ -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) {