Commit 787e0981 authored by Shen Feng's avatar Shen Feng Committed by Theodore Ts'o

ext4: return error when calling ext4_ext_split failed

ext4_ext_create_new_leaf must return error when its
calling to ext4_ext_split failed.
Signed-off-by: default avatarShen Feng <shen@cn.fujitsu.com>
Signed-off-by: default avatarMingming Cao <cmm@us.ibm.com>
Reviewed-by: default avatarAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent a379cd1d
...@@ -981,6 +981,8 @@ static int ext4_ext_create_new_leaf(handle_t *handle, struct inode *inode, ...@@ -981,6 +981,8 @@ static int ext4_ext_create_new_leaf(handle_t *handle, struct inode *inode,
/* if we found index with free entry, then use that /* if we found index with free entry, then use that
* entry: create all needed subtree and add new leaf */ * entry: create all needed subtree and add new leaf */
err = ext4_ext_split(handle, inode, path, newext, i); err = ext4_ext_split(handle, inode, path, newext, i);
if (err)
goto out;
/* refill path */ /* refill path */
ext4_ext_drop_refs(path); ext4_ext_drop_refs(path);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment