Home
last modified time | relevance | path

Searched refs:bg_num (Results 1 – 2 of 2) sorted by relevance

/system/extras/ext4_utils/
Dallocate.c158 u32 block, u32 len, int bg_num) in append_region() argument
164 reg->bg = bg_num; in append_region()
344 static u32 ext4_allocate_blocks_from_block_group(u32 len, int bg_num) in ext4_allocate_blocks_from_block_group() argument
346 if (get_free_blocks(bg_num) < len) in ext4_allocate_blocks_from_block_group()
349 u32 block = aux_info.bgs[bg_num].first_free_block; in ext4_allocate_blocks_from_block_group()
350 struct block_group_info *bg = &aux_info.bgs[bg_num]; in ext4_allocate_blocks_from_block_group()
352 error("failed to reserve %u blocks in block group %u\n", len, bg_num); in ext4_allocate_blocks_from_block_group()
356 aux_info.bgs[bg_num].data_blocks_used += len; in ext4_allocate_blocks_from_block_group()
Dext4fixup.c168 unsigned int bg_num, bg_offset; in read_inode() local
172 bg_num = (inum-1) / info.inodes_per_group; in read_inode()
175 inode_offset = ((unsigned long long)aux_info.bg_desc[bg_num].bg_inode_table * info.block_size) + in read_inode()
232 static void check_inode_bitmap(int fd, unsigned int bg_num) in check_inode_bitmap() argument
242 inode_bitmap_block_num = aux_info.bg_desc[bg_num].bg_inode_bitmap; in check_inode_bitmap()
255 printf("Warning: updated inode bitmap for block group %d\n", bg_num); in check_inode_bitmap()