We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 799c4c1 commit 5a553bdCopy full SHA for 5a553bd
fs/ocfs2/journal.h
@@ -597,9 +597,11 @@ static inline void ocfs2_update_inode_fsync_trans(handle_t *handle,
597
{
598
struct ocfs2_inode_info *oi = OCFS2_I(inode);
599
600
- oi->i_sync_tid = handle->h_transaction->t_tid;
601
- if (datasync)
602
- oi->i_datasync_tid = handle->h_transaction->t_tid;
+ if (!is_handle_aborted(handle)) {
+ oi->i_sync_tid = handle->h_transaction->t_tid;
+ if (datasync)
603
+ oi->i_datasync_tid = handle->h_transaction->t_tid;
604
+ }
605
}
606
607
#endif /* OCFS2_JOURNAL_H */
0 commit comments