cifs: have cifsFileInfo hold a reference to a tlink rather than tcon pointer
[deliverable/linux.git] / fs / cifs / cifsfs.c
index 898d2a5cfad2cacf3001521ce51038b654f65a83..b2fd075dc2e6de636ef30fb0bea2b1c939206086 100644 (file)
@@ -595,7 +595,8 @@ static int cifs_setlease(struct file *file, long arg, struct file_lock **lease)
            ((arg == F_WRLCK) &&
                (CIFS_I(inode)->clientCanCacheAll)))
                return generic_setlease(file, arg, lease);
-       else if (cfile->tcon->local_lease && !CIFS_I(inode)->clientCanCacheRead)
+       else if (tlink_tcon(cfile->tlink)->local_lease &&
+                !CIFS_I(inode)->clientCanCacheRead)
                /* If the server claims to support oplock on this
                   file, then we still need to check oplock even
                   if the local_lease mount option is set, but there
This page took 0.026137 seconds and 5 git commands to generate.