Lines Matching refs:bgs
262 free_blocks(&aux_info.bgs[last_reg->bg], len);
267 free_blocks(&aux_info.bgs[last_reg->bg], last_reg->len);
324 aux_info.bgs = calloc(sizeof(struct block_group_info), aux_info.groups);
325 if (aux_info.bgs == NULL)
329 init_bg(&aux_info.bgs[i], i);
337 free(aux_info.bgs[i].bitmaps);
338 free(aux_info.bgs[i].inode_table);
340 free(aux_info.bgs);
348 u32 block = aux_info.bgs[bg_num].first_free_block;
349 struct block_group_info *bg = &aux_info.bgs[bg_num];
355 aux_info.bgs[bg_num].data_blocks_used += len;
381 u32 bg_len = aux_info.bgs[i].free_blocks;
528 return aux_info.bgs[bg].free_blocks;
663 allocate_bg_inode_table(&aux_info.bgs[bg]);
664 return (struct ext4_inode *)(aux_info.bgs[bg].inode_table + inode *
707 inode = aux_info.bgs[bg].first_free_inode + i - 1;
708 aux_info.bgs[bg].inode_bitmap[inode / 8] |= 1 << (inode % 8);
711 inode = aux_info.bgs[bg].first_free_inode;
713 aux_info.bgs[bg].first_free_inode += num;
714 aux_info.bgs[bg].free_inodes -= num;
738 return aux_info.bgs[bg].free_inodes;
745 aux_info.bgs[bg].used_dirs += 1;
751 return aux_info.bgs[bg].used_dirs;
757 return aux_info.bgs[bg].flags;