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 <>
Signed-off-by: default avatarMingming Cao <>
Reviewed-by: default avatarAneesh Kumar K.V <>
Signed-off-by: default avatar"Theodore Ts'o" <>
parent a379cd1d
......@@ -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
* entry: create all needed subtree and add new leaf */
err = ext4_ext_split(handle, inode, path, newext, i);
if (err)
goto out;
/* refill 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