Lines Matching refs:start_blk
38 static blk64_t flexbg_offset(ext2_filsys fs, dgrp_t group, blk64_t start_blk, in flexbg_offset() argument
57 if (start_blk && start_blk < ext2fs_blocks_count(fs->super) && in flexbg_offset()
58 ext2fs_get_free_blocks2(fs, start_blk, start_blk + size, elem_size, in flexbg_offset()
62 start_blk = ext2fs_group_first_block2(fs, flexbg_size * flexbg); in flexbg_offset()
69 if (ext2fs_get_free_blocks2(fs, start_blk, last_blk, size, in flexbg_offset()
73 if (ext2fs_get_free_blocks2(fs, start_blk, last_blk, elem_size, in flexbg_offset()
88 blk64_t group_blk, start_blk, last_blk, new_blk; in ext2fs_allocate_group_table() local
112 1, bmap, &start_blk); in ext2fs_allocate_group_table()
115 start_blk += fs->inode_blocks_per_group; in ext2fs_allocate_group_table()
116 start_blk += ((fs->stride * group) % in ext2fs_allocate_group_table()
117 (last_blk - start_blk + 1)); in ext2fs_allocate_group_table()
118 if (start_blk >= last_blk) in ext2fs_allocate_group_table()
119 start_blk = group_blk; in ext2fs_allocate_group_table()
121 start_blk = group_blk; in ext2fs_allocate_group_table()
142 start_blk = flexbg_offset(fs, group, prev_block, bmap, in ext2fs_allocate_group_table()
148 retval = ext2fs_get_free_blocks2(fs, start_blk, last_blk, in ext2fs_allocate_group_table()
175 start_blk = flexbg_offset(fs, group, prev_block, bmap, in ext2fs_allocate_group_table()
181 retval = ext2fs_get_free_blocks2(fs, start_blk, last_blk, in ext2fs_allocate_group_table()