]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/ext4/super.c
ext4: Wait for proper transaction commit on fsync
[karo-tx-linux.git] / fs / ext4 / super.c
index 803fb252c111f4c0ab819c5d1a5dec3dfa8a50a5..9ae521749b90cce82d84b46abbe027199b25c473 100644 (file)
@@ -706,6 +706,8 @@ static struct inode *ext4_alloc_inode(struct super_block *sb)
        spin_lock_init(&(ei->i_block_reservation_lock));
        INIT_LIST_HEAD(&ei->i_aio_dio_complete_list);
        ei->cur_aio_dio = NULL;
+       ei->i_sync_tid = 0;
+       ei->i_datasync_tid = 0;
 
        return &ei->vfs_inode;
 }