aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/extents.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 37043d0b2be8..0b16fb4c06d3 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -3603,11 +3603,10 @@ static int ext4_ext_convert_to_initialized(handle_t *handle,
3603 } 3603 }
3604 } 3604 }
3605 3605
3606 allocated = ext4_split_extent(handle, inode, ppath, 3606 err = ext4_split_extent(handle, inode, ppath, &split_map, split_flag,
3607 &split_map, split_flag, flags); 3607 flags);
3608 if (allocated < 0) 3608 if (err > 0)
3609 err = allocated; 3609 err = 0;
3610
3611out: 3610out:
3612 /* If we have gotten a failure, don't zero out status tree */ 3611 /* If we have gotten a failure, don't zero out status tree */
3613 if (!err) 3612 if (!err)