cifs: have cifsFileInfo hold a reference to a tlink rather than tcon pointer
[pandora-kernel.git] / fs / cifs / ioctl.c
index cc70a61..077bf75 100644 (file)
@@ -38,7 +38,7 @@ long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg)
        struct cifs_sb_info *cifs_sb;
 #ifdef CONFIG_CIFS_POSIX
        struct cifsFileInfo *pSMBFile = filep->private_data;
-       struct cifsTconInfo *tcon = pSMBFile->tcon;
+       struct cifsTconInfo *tcon = tlink_tcon(pSMBFile->tlink);
        __u64   ExtAttrBits = 0;
        __u64   ExtAttrMask = 0;
        __u64   caps = le64_to_cpu(tcon->fsUnixInfo.Capability);