diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2013-04-19 20:04:12 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-04-19 20:04:12 +0200 |
commit | 2656497b26d45c1ca51a7727ab92c8307cb99305 (patch) | |
tree | 3ca5df6ee834234d577d16409964ea283d4cb8b9 /fs/ext4/move_extent.c | |
parent | ext4: move quota initialization out of inode allocation transaction (diff) | |
download | linux-2656497b26d45c1ca51a7727ab92c8307cb99305.tar.xz 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); } /** |