diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2013-04-19 14:04:12 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-04-19 14:04:12 -0400 |
commit | 2656497b26d45c1ca51a7727ab92c8307cb99305 (patch) | |
tree | 3ca5df6ee834234d577d16409964ea283d4cb8b9 /fs/ext4/move_extent.c | |
parent | eb9cc7e16b32c898a1d715733c590f115aa0a099 (diff) | |
download | linux-2656497b26d45c1ca51a7727ab92c8307cb99305.tar.gz linux-2656497b26d45c1ca51a7727ab92c8307cb99305.tar.bz2 linux-2656497b26d45c1ca51a7727ab92c8307cb99305.zip |
ext4: mext_insert_extents should update extent block checksum
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/move_extent.c')
-rw-r--r-- | fs/ext4/move_extent.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/fs/ext4/move_extent.c b/fs/ext4/move_extent.c index 309ca899a731..3dcbf364022f 100644 --- a/fs/ext4/move_extent.c +++ b/fs/ext4/move_extent.c @@ -409,18 +409,7 @@ mext_insert_extents(handle_t *handle, struct inode *orig_inode, mext_insert_inside_block(o_start, o_end, start_ext, new_ext, end_ext, eh, range_to_move); - if (depth) { - ret = ext4_handle_dirty_metadata(handle, orig_inode, - orig_path->p_bh); - if (ret) - return ret; - } else { - ret = ext4_mark_inode_dirty(handle, orig_inode); - if (ret < 0) - return ret; - } - - return 0; + return ext4_ext_dirty(handle, orig_inode, orig_path); } /** |