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

login
register
mail settings
Submitter Dmitri Monakho
Date Oct. 28, 2011, 5 p.m.
Message ID <1319821210-7374-6-git-send-email-dmonakhov@openvz.org>
Download mbox | patch
Permalink /patch/122449/
State New
Headers show

Comments

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

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);