Searched refs:bg_idx (Results 1 – 3 of 3) sorted by relevance
141 int bg_idx; in delete_single_indirect_block() local155 bg_idx = blknr / blk_per_grp; in delete_single_indirect_block()159 bg_idx--; in delete_single_indirect_block()161 ext4fs_reset_block_bmap(blknr, fs->blk_bmaps[bg_idx], bg_idx); in delete_single_indirect_block()163 bgd = ext4fs_get_group_descriptor(fs, bg_idx); in delete_single_indirect_block()167 if (prev_bg_bmap_idx != bg_idx) { in delete_single_indirect_block()176 prev_bg_bmap_idx = bg_idx; in delete_single_indirect_block()190 int bg_idx; in delete_double_indirect_block() local217 bg_idx = le32_to_cpu(*di_buffer) / blk_per_grp; in delete_double_indirect_block()221 bg_idx--; in delete_double_indirect_block()[all …]
50 (const struct ext_filesystem *fs, uint32_t bg_idx) in ext4fs_get_group_descriptor() argument52 return (struct ext2_block_group *)(fs->gdtable + (bg_idx * fs->gdsize)); in ext4fs_get_group_descriptor()963 unsigned int bg_idx; in ext4fs_get_new_blk_no() local1018 bg_idx = fs->curr_blkno / blk_per_grp; in ext4fs_get_new_blk_no()1022 bg_idx--; in ext4fs_get_new_blk_no()1029 if (bg_idx >= fs->no_blkgrp) in ext4fs_get_new_blk_no()1033 bgd = ext4fs_get_group_descriptor(fs, bg_idx); in ext4fs_get_new_blk_no()1035 debug("block group %u is full. Skipping\n", bg_idx); in ext4fs_get_new_blk_no()1036 fs->curr_blkno = (bg_idx + 1) * blk_per_grp; in ext4fs_get_new_blk_no()1045 memcpy(fs->blk_bmaps[bg_idx], zero_buffer, fs->blksz); in ext4fs_get_new_blk_no()[all …]
77 (const struct ext_filesystem *fs, uint32_t bg_idx);