Searched refs:bitmap_slot (Results 1 – 1 of 1) sorted by relevance
870 int rc, bitmap_slot; in ext2_alloc_block() local897 bitmap_slot = ext2_bitmap_find_free(BGROUP_BLOCK_BITMAP(&fs->bgroup), fs->block_size); in ext2_alloc_block()898 if (bitmap_slot < 0) { in ext2_alloc_block()899 LOG_WRN("Cannot find free block in group %d (rc: %d)", group, bitmap_slot); in ext2_alloc_block()900 return bitmap_slot; in ext2_alloc_block()904 total = group * fs->sblock.s_blocks_per_group + bitmap_slot + fs->sblock.s_first_data_block; in ext2_alloc_block()906 LOG_DBG("Found free block %d in group %d (total: %d)", bitmap_slot, group, total); in ext2_alloc_block()908 rc = ext2_bitmap_set(BGROUP_BLOCK_BITMAP(&fs->bgroup), bitmap_slot, fs->block_size); in ext2_alloc_block()