group_blk = fs->ext2_sb->s_first_data_block +
(group * fs->ext2_sb->s_blocks_per_group);
-
+
last_blk = group_blk + fs->ext2_sb->s_blocks_per_group;
if (last_blk >= fs->ext2_sb->s_blocks_count)
last_blk = fs->ext2_sb->s_blocks_count - 1;
if (!bmap)
bmap = fs->block_map;
-
+
/*
* Allocate the inode table
*/
retval = ext2_get_free_blocks(fs, start_blk, last_blk,
1, bmap, &new_blk);
- if (!retval)
+ if (!retval)
retval = ext2_get_free_blocks(fs, group_blk,
last_blk, 1, bmap, &new_blk);
{
retval = ext2_get_free_blocks(fs, start_blk, last_blk,
1, bmap, &new_blk);
- if (!retval)
+ if (!retval)
retval = ext2_get_free_blocks(fs, group_blk,
last_blk, 1, bmap, &new_blk);
if (!retval)
{
goto fail;
}
-
+
ext2_block_alloc_stats(fs, block, +1);
*ret = block;