Lines Matching refs:bgs
234 free_blocks(&aux_info.bgs[last_reg->bg], len);
239 free_blocks(&aux_info.bgs[last_reg->bg], last_reg->len);
293 aux_info.bgs = calloc(sizeof(struct block_group_info), aux_info.groups);
294 if (aux_info.bgs == NULL)
298 init_bg(&aux_info.bgs[i], i);
306 free(aux_info.bgs[i].bitmaps);
307 free(aux_info.bgs[i].inode_table);
309 free(aux_info.bgs);
317 u32 block = aux_info.bgs[bg_num].first_free_block;
318 struct block_group_info *bg = &aux_info.bgs[bg_num];
324 aux_info.bgs[bg_num].data_blocks_used += len;
371 if (aux_info.bgs[i].data_blocks_used == 0) {
372 u32 bg_len = aux_info.bgs[i].free_blocks;
530 return aux_info.bgs[bg].free_blocks;
665 allocate_bg_inode_table(&aux_info.bgs[bg]);
666 return (struct ext4_inode *)(aux_info.bgs[bg].inode_table + inode *
680 inode = aux_info.bgs[bg].first_free_inode + i - 1;
681 aux_info.bgs[bg].inode_bitmap[inode / 8] |= 1 << (inode % 8);
684 inode = aux_info.bgs[bg].first_free_inode;
686 aux_info.bgs[bg].first_free_inode += num;
687 aux_info.bgs[bg].free_inodes -= num;
711 return aux_info.bgs[bg].free_inodes;
718 aux_info.bgs[bg].used_dirs += 1;
724 return aux_info.bgs[bg].used_dirs;