summaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2proto.h
diff options
context:
space:
mode:
authorAurelien Aptel2017-02-28 15:08:41 +0100
committerSteve French2017-03-02 05:26:11 +0100
commit51146625f34b348c15d55c378b5ae5c2fb963fc8 (patch)
tree65f0cb7f1a721ddc8539da0f212618ece9180425 /fs/cifs/smb2proto.h
parentCIFS: add build_path_from_dentry_optional_prefix() (diff)
downloadkernel-qcow2-linux-51146625f34b348c15d55c378b5ae5c2fb963fc8.tar.gz
kernel-qcow2-linux-51146625f34b348c15d55c378b5ae5c2fb963fc8.tar.xz
kernel-qcow2-linux-51146625f34b348c15d55c378b5ae5c2fb963fc8.zip
CIFS: add use_ipc flag to SMB2_ioctl()
when set, use the session IPC tree id instead of the tid in the provided tcon. Signed-off-by: Aurelien Aptel <aaptel@suse.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2proto.h')
-rw-r--r--fs/cifs/smb2proto.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/smb2proto.h b/fs/cifs/smb2proto.h
index 85fc7a789334..11d9f3013db8 100644
--- a/fs/cifs/smb2proto.h
+++ b/fs/cifs/smb2proto.h
@@ -121,7 +121,8 @@ extern int SMB2_open(const unsigned int xid, struct cifs_open_parms *oparms,
struct smb2_err_rsp **err_buf);
extern int SMB2_ioctl(const unsigned int xid, struct cifs_tcon *tcon,
u64 persistent_fid, u64 volatile_fid, u32 opcode,
- bool is_fsctl, char *in_data, u32 indatalen,
+ bool is_fsctl, bool use_ipc,
+ char *in_data, u32 indatalen,
char **out_data, u32 *plen /* returned data len */);
extern int SMB2_close(const unsigned int xid, struct cifs_tcon *tcon,
u64 persistent_file_id, u64 volatile_file_id);