Skip to content

Commit

Permalink
ext4: make ext4_split_extent() handle error correctly
Browse files Browse the repository at this point in the history
Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Mingming Cao <cmm@us.ibm.com>
  • Loading branch information
Yongqiang Yang authored and Theodore Ts'o committed May 23, 2011
1 parent 373cd5c commit 9391741
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/ext4/extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -2716,6 +2716,8 @@ static int ext4_split_extent(handle_t *handle,
EXT4_EXT_MARK_UNINIT2;
err = ext4_split_extent_at(handle, inode, path,
map->m_lblk + map->m_len, split_flag1, flags1);
if (err)
goto out;
}

ext4_ext_drop_refs(path);
Expand Down

0 comments on commit 9391741

Please sign in to comment.