Lines Matching refs:aux_info
86 for (element = aux_info.xattrs; element != NULL; element = element->next) {
98 element->next = aux_info.xattrs;
99 aux_info.xattrs = element;
178 block += aux_info.bg_desc_blocks + info.bg_desc_reserve_blocks + 1;
180 bg->inode_table = calloc(aux_info.inode_table_blocks, info.block_size);
185 aux_info.inode_table_blocks * info.block_size, block);
263 free_blocks(&aux_info.bgs[last_reg->bg], len);
268 free_blocks(&aux_info.bgs[last_reg->bg], last_reg->len);
285 int header_blocks = 2 + aux_info.inode_table_blocks;
290 header_blocks += 1 + aux_info.bg_desc_blocks + info.bg_desc_reserve_blocks;
297 bg->first_block = aux_info.first_data_block + i * info.blocks_per_group;
301 block += 1 + aux_info.bg_desc_blocks + info.bg_desc_reserve_blocks;
315 u32 overrun = bg->first_block + info.blocks_per_group - aux_info.len_blocks;
324 aux_info.bgs = calloc(sizeof(struct block_group_info), aux_info.groups);
325 if (aux_info.bgs == NULL)
328 for (i = 0; i < aux_info.groups; i++)
329 init_bg(&aux_info.bgs[i], i);
336 for (i = 0; i < aux_info.groups; 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;
365 for (i = 0; i < aux_info.groups; i++) {
386 for (i = 0; i < aux_info.groups; i++) {
401 for (i = 0; i < aux_info.groups; i++) {
402 if (aux_info.bgs[i].data_blocks_used == 0) {
403 u32 bg_len = aux_info.bgs[i].free_blocks;
561 return aux_info.bgs[bg].free_blocks;
696 allocate_bg_inode_table(&aux_info.bgs[bg]);
697 return (struct ext4_inode *)(aux_info.bgs[bg].inode_table + inode *
740 inode = aux_info.bgs[bg].first_free_inode + i - 1;
741 aux_info.bgs[bg].inode_bitmap[inode / 8] |= 1 << (inode % 8);
744 inode = aux_info.bgs[bg].first_free_inode;
746 aux_info.bgs[bg].first_free_inode += num;
747 aux_info.bgs[bg].free_inodes -= num;
759 for (bg = 0; bg < aux_info.groups; bg++) {
771 return aux_info.bgs[bg].free_inodes;
778 aux_info.bgs[bg].used_dirs += 1;
784 return aux_info.bgs[bg].used_dirs;
790 return aux_info.bgs[bg].flags;