diff options
author | Shen Feng <shen@cn.fujitsu.com> | 2008-07-11 19:27:31 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-07-11 19:27:31 -0400 |
commit | 787e0981fad97a5ca3d07c7afe115a7e345b2861 (patch) | |
tree | bbab1d5506aa8c3cfdb018a75b346f8d873818bc /fs/ext4/extents.c | |
parent | a379cd1d6bb00f9f5d2759d4a5621a884df5914e (diff) |
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: 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>
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r-- | fs/ext4/extents.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index f7a746b5b7be..bc17ed742845 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -981,6 +981,8 @@ repeat: | |||
981 | /* if we found index with free entry, then use that | 981 | /* if we found index with free entry, then use that |
982 | * entry: create all needed subtree and add new leaf */ | 982 | * entry: create all needed subtree and add new leaf */ |
983 | err = ext4_ext_split(handle, inode, path, newext, i); | 983 | err = ext4_ext_split(handle, inode, path, newext, i); |
984 | if (err) | ||
985 | goto out; | ||
984 | 986 | ||
985 | /* refill path */ | 987 | /* refill path */ |
986 | ext4_ext_drop_refs(path); | 988 | ext4_ext_drop_refs(path); |