]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/ocfs2/journal.h
Merge git://git.kvack.org/~bcrl/aio-next
[karo-tx-linux.git] / fs / ocfs2 / journal.h
index 9ff4e8cf9d972857a79e07a628116084bc6ba506..7f8cde94abfe6968069f206562a025eed6e5ff5c 100644 (file)
@@ -626,4 +626,15 @@ static inline int ocfs2_begin_ordered_truncate(struct inode *inode,
                                new_size);
 }
 
+static inline void ocfs2_update_inode_fsync_trans(handle_t *handle,
+                                                 struct inode *inode,
+                                                 int datasync)
+{
+       struct ocfs2_inode_info *oi = OCFS2_I(inode);
+
+       oi->i_sync_tid = handle->h_transaction->t_tid;
+       if (datasync)
+               oi->i_datasync_tid = handle->h_transaction->t_tid;
+}
+
 #endif /* OCFS2_JOURNAL_H */