buddy: Assert that there is anything to allocate in alloc_async

Ref #53
parent b9398c93
......@@ -2003,6 +2003,7 @@ BUDDYF(alloc_async)(struct buddy_reqs *reqs)
buddy = reqs->buddy;
assert(w->alloced < reqs->n);
assert(w->finid < reqs->n);
AZ(pthread_mutex_lock(&reqs->buddy->map_mtx));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment