[5/7] ext4: Update inode's transaction id after punch_hole

Submitted by Dmitri Monakho on Oct. 28, 2011, 5 p.m.

Details

Message ID 1319821210-7374-6-git-send-email-dmonakhov@openvz.org
State New
Headers show

Commit Message

Dmitri Monakho Oct. 28, 2011, 5 p.m.
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
---
 fs/ext4/extents.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch hide | download patch | download mbox

diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 0365173..5cce39a 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -3289,6 +3289,7 @@  ext4_ext_handle_punched_extent(handle_t *handle, struct inode *inode,
 	if (!err && ext4_ext_try_shrink(handle, inode))
 		err = ext4_mark_inode_dirty(handle, inode);
 out:
+	ext4_update_inode_fsync_trans(handle, inode, 0);
 	if (path) {
 		ext4_ext_drop_refs(path);
 		kfree(path);