]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/ext4/super.c
ext4: Wait for proper transaction commit on fsync
[net-next-2.6.git] / fs / ext4 / super.c
index 8ab0c9518473564d424dff278a38090d15536677..2b13dcfcf775ffaf18c889d5f8444d389535b18f 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;
 }