Commit 5883b9a2 authored by John Esmet's avatar John Esmet

FT-302 Correctly use the new interface (oops)

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