|
@@ -3603,11 +3603,10 @@ static int ext4_ext_convert_to_initialized(handle_t *handle,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- allocated = ext4_split_extent(handle, inode, ppath,
|
|
|
|
- &split_map, split_flag, flags);
|
|
|
|
- if (allocated < 0)
|
|
|
|
- err = allocated;
|
|
|
|
-
|
|
|
|
|
|
+ err = ext4_split_extent(handle, inode, ppath, &split_map, split_flag,
|
|
|
|
+ flags);
|
|
|
|
+ if (err > 0)
|
|
|
|
+ err = 0;
|
|
out:
|
|
out:
|
|
/* If we have gotten a failure, don't zero out status tree */
|
|
/* If we have gotten a failure, don't zero out status tree */
|
|
if (!err)
|
|
if (!err)
|