Skip to content

Commit

Permalink
ext4: return error when calling ext4_ext_split failed
Browse files Browse the repository at this point in the history
ext4_ext_create_new_leaf must return error when its
calling to ext4_ext_split failed.

Signed-off-by: Shen Feng <shen@cn.fujitsu.com>
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
  • Loading branch information
Shen Feng authored and Theodore Ts'o committed Jul 11, 2008
1 parent a379cd1 commit 787e098
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 @@ -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 */
ext4_ext_drop_refs(path);
Expand Down

0 comments on commit 787e098

Please sign in to comment.