summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorRonnie Sahlberg2018-04-26 16:10:18 +0200
committerSteve French2018-05-28 00:56:35 +0200
commit96164ab2d880c9539989bea68d4790f6fd619b1f (patch)
tree21006852808517051131cd386e77a3ebeffda095 /fs/cifs/cifsglob.h
parentcifs: fix build break when CONFIG_CIFS_DEBUG2 enabled (diff)
downloadkernel-qcow2-linux-96164ab2d880c9539989bea68d4790f6fd619b1f.tar.gz
kernel-qcow2-linux-96164ab2d880c9539989bea68d4790f6fd619b1f.tar.xz
kernel-qcow2-linux-96164ab2d880c9539989bea68d4790f6fd619b1f.zip
cifs: store the leaseKey in the fid on SMB2_open
In SMB2_open(), if we got a lease we need to store this in the fid structure or else we will never be able to map a lease break back to which file/fid it applies to. Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index d71585025ef6..4f674b75bbc8 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -417,7 +417,7 @@ struct smb_version_operations {
/* create lease context buffer for CREATE request */
char * (*create_lease_buf)(u8 *, u8);
/* parse lease context buffer and return oplock/epoch info */
- __u8 (*parse_lease_buf)(void *, unsigned int *);
+ __u8 (*parse_lease_buf)(void *buf, unsigned int *epoch, char *lkey);
ssize_t (*copychunk_range)(const unsigned int,
struct cifsFileInfo *src_file,
struct cifsFileInfo *target_file,