Lines Matching refs:bg_idx
51 (const struct ext_filesystem *fs, uint32_t bg_idx) in ext4fs_get_group_descriptor() argument
53 return (struct ext2_block_group *)(fs->gdtable + (bg_idx * fs->gdsize)); in ext4fs_get_group_descriptor()
964 unsigned int bg_idx; in ext4fs_get_new_blk_no() local
1019 bg_idx = fs->curr_blkno / blk_per_grp; in ext4fs_get_new_blk_no()
1023 bg_idx--; in ext4fs_get_new_blk_no()
1030 if (bg_idx >= fs->no_blkgrp) in ext4fs_get_new_blk_no()
1034 bgd = ext4fs_get_group_descriptor(fs, bg_idx); in ext4fs_get_new_blk_no()
1036 debug("block group %u is full. Skipping\n", bg_idx); in ext4fs_get_new_blk_no()
1037 fs->curr_blkno = (bg_idx + 1) * blk_per_grp; in ext4fs_get_new_blk_no()
1046 memcpy(fs->blk_bmaps[bg_idx], zero_buffer, fs->blksz); in ext4fs_get_new_blk_no()
1053 if (ext4fs_set_block_bmap(fs->curr_blkno, fs->blk_bmaps[bg_idx], in ext4fs_get_new_blk_no()
1054 bg_idx) != 0) { in ext4fs_get_new_blk_no()
1056 fs->curr_blkno, bg_idx); in ext4fs_get_new_blk_no()
1062 if (prev_bg_bitmap_index != bg_idx) { in ext4fs_get_new_blk_no()
1070 prev_bg_bitmap_index = bg_idx; in ext4fs_get_new_blk_no()