aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ext2fs/extent.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ext2fs/extent.c')
-rw-r--r--lib/ext2fs/extent.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ext2fs/extent.c b/lib/ext2fs/extent.c
index 4d6af883..9cc7cba2 100644
--- a/lib/ext2fs/extent.c
+++ b/lib/ext2fs/extent.c
@@ -934,8 +934,7 @@ errcode_t ext2fs_extent_node_split(ext2_extent_handle_t handle)
if (log_flex)
group = group & ~((1 << (log_flex)) - 1);
- goal_blk = (group * handle->fs->super->s_blocks_per_group) +
- handle->fs->super->s_first_data_block;
+ goal_blk = ext2fs_group_first_block2(handle->fs, group);
}
retval = ext2fs_alloc_block2(handle->fs, goal_blk, block_buf,
&new_node_pblk);