From b66831b3661227fd3d9f0a733d460bb7a3413da1 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Wed, 16 Mar 2011 17:16:31 -0400 Subject: [PATCH] --- yaml --- r: 242383 b: refs/heads/master c: 688f869ce3bdc892daa993534dc6df18c95df931 h: refs/heads/master i: 242381: e07784ec9054a61e84e32ceb00ae94c0bd10b5f0 242379: c9bad98d430f095b4f93659dd9db87082b261440 242375: a0fc49178c1b12db7962968c2f68685993f8ac49 242367: f368aa407aad91a2309f894cb5b96fcc9be13a7b v: v3 --- [refs] | 2 +- trunk/fs/ext4/ialloc.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 0dcc3f6374c3..89f7fd7c88e2 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 198868f35de99e7197829314076e5465c37e4cc5 +refs/heads/master: 688f869ce3bdc892daa993534dc6df18c95df931 diff --git a/trunk/fs/ext4/ialloc.c b/trunk/fs/ext4/ialloc.c index 2fd3b0e41787..a679a482c986 100644 --- a/trunk/fs/ext4/ialloc.c +++ b/trunk/fs/ext4/ialloc.c @@ -1054,6 +1054,11 @@ struct inode *ext4_new_inode(handle_t *handle, struct inode *dir, int mode, } } + if (ext4_handle_valid(handle)) { + ei->i_sync_tid = handle->h_transaction->t_tid; + ei->i_datasync_tid = handle->h_transaction->t_tid; + } + err = ext4_mark_inode_dirty(handle, inode); if (err) { ext4_std_error(sb, err);