aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwangyan <[email protected]>2020-01-30 22:11:53 -0800
committerLinus Torvalds <[email protected]>2020-01-31 10:30:36 -0800
commit25b69918d9f16c729193cc7c6f48f0b8991813f9 (patch)
treeaf0519aa8e80e1424c5ef0e2a5d67fee9576e0d9
parent9f16ca48fc818a17de8be1f75d08e7f4addc4497 (diff)
ocfs2: use ocfs2_update_inode_fsync_trans() to access t_tid in handle->h_transaction
For the uniform format, we use ocfs2_update_inode_fsync_trans() to access t_tid in handle->h_transaction Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Yan Wang <[email protected]> Reviewed-by: Jun Piao <[email protected]> Cc: Mark Fasheh <[email protected]> Cc: Joel Becker <[email protected]> Cc: Junxiao Bi <[email protected]> Cc: Joseph Qi <[email protected]> Cc: Changwei Ge <[email protected]> Cc: Gang He <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--fs/ocfs2/namei.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c
index 8ea51cf27b97..da65251ef815 100644
--- a/fs/ocfs2/namei.c
+++ b/fs/ocfs2/namei.c
@@ -586,8 +586,7 @@ static int __ocfs2_mknod_locked(struct inode *dir,
mlog_errno(status);
}
- oi->i_sync_tid = handle->h_transaction->t_tid;
- oi->i_datasync_tid = handle->h_transaction->t_tid;
+ ocfs2_update_inode_fsync_trans(handle, inode, 1);
leave:
if (status < 0) {