Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git...
[muen/linux.git] / fs / ext4 / ext4_jbd2.h
index a1ac7e9245ecc46efaceda18901f513922937376..75a5309f223151767aa951336dbd370e6776ec14 100644 (file)
@@ -384,7 +384,7 @@ static inline void ext4_update_inode_fsync_trans(handle_t *handle,
 {
        struct ext4_inode_info *ei = EXT4_I(inode);
 
-       if (ext4_handle_valid(handle)) {
+       if (ext4_handle_valid(handle) && !is_handle_aborted(handle)) {
                ei->i_sync_tid = handle->h_transaction->t_tid;
                if (datasync)
                        ei->i_datasync_tid = handle->h_transaction->t_tid;