ext4: make ext4_split_extent() handle error correctly

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>
This commit is contained in:
Yongqiang Yang 2011-05-22 20:49:12 -04:00 committed by Theodore Ts'o
parent 373cd5c53d
commit 93917411be

View file

@ -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);