Commit 633f26a1 authored by John Esmet's avatar John Esmet

FT-302 Correctly use the new interface (oops)

parent c543a359
......@@ -285,7 +285,7 @@ void block_allocator::alloc_block(uint64_t size, uint64_t *offset) {
return;
}
struct blockpair *bp = choose_block_first_fit_strategy(_blocks_array, _n_blocks, size, _alignment);
struct blockpair *bp = choose_block_to_alloc_after(size);
if (bp != nullptr) {
// our allocation strategy chose the space after `bp' to fit the new block
uint64_t answer_offset = align(bp->offset + bp->size, _alignment);
......
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