]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - fs/cifs/smb2inode.c
CIFS: Process oplocks for SMB2
[thirdparty/linux.git] / fs / cifs / smb2inode.c
index 1bd6b0f0c10ed708e5bfe628e27c9e632fbad06b..706482452df4f8ce196520fc2d34043dd1d42e6a 100644 (file)
@@ -47,6 +47,7 @@ smb2_open_op_close(const unsigned int xid, struct cifs_tcon *tcon,
        int rc, tmprc = 0;
        u64 persistent_fid, volatile_fid;
        __le16 *utf16_path;
+       __u8 oplock = SMB2_OPLOCK_LEVEL_NONE;
 
        utf16_path = cifs_convert_path_to_utf16(full_path, cifs_sb);
        if (!utf16_path)
@@ -54,7 +55,7 @@ smb2_open_op_close(const unsigned int xid, struct cifs_tcon *tcon,
 
        rc = SMB2_open(xid, tcon, utf16_path, &persistent_fid, &volatile_fid,
                       desired_access, create_disposition, file_attributes,
-                      create_options, NULL);
+                      create_options, &oplock, NULL);
        if (rc) {
                kfree(utf16_path);
                return rc;