- if (n != 0) {
- head->free = head->start;
- head->link = NULL;
- for (i=1, bd = head+1; i < n; i++, bd++) {
+ n = head->blocks;
+ head->free = head->start;
+ head->link = NULL;
+ for (i=1, bd = head+1; i < n; i++, bd++) {
{
bd = alloc_mega_group(BLOCKS_TO_MBLOCKS(n));
// only the bdescrs of the first MB are required to be initialised
{
bd = alloc_mega_group(BLOCKS_TO_MBLOCKS(n));
// only the bdescrs of the first MB are required to be initialised
n_alloc_blocks += rem->blocks;
freeGroup(rem); // add the slop on to the free list
IF_DEBUG(sanity, checkFreeListSanity());
n_alloc_blocks += rem->blocks;
freeGroup(rem); // add the slop on to the free list
IF_DEBUG(sanity, checkFreeListSanity());