Branch: Tag:

2014-08-22

2014-08-22 16:00:14 by Arne Goedeke <el@laramies.com>

block_allocator: do not round up powers of 2

The family of round_up* functions rounds up to the next power of two.
This made most block allocators initial areas twice as big as intended.

127:    a->l.doffset = sizeof(struct ba_page);    }    +  if (a->l.blocks & (a->l.blocks - 1))    a->l.blocks = round_up32(a->l.blocks);    a->l.block_size = block_size;    a->l.offset = block_size * (a->l.blocks-1);