summaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2pdu.h
diff options
context:
space:
mode:
authorRonnie Sahlberg2018-08-21 03:49:21 +0200
committerSteve French2018-08-23 22:10:40 +0200
commit4d8dfafc5cb88fe294a9273a3ef75dd4f9fa1aa2 (patch)
tree6d149db6a331999d117ab697cda9d19bf49e3b73 /fs/cifs/smb2pdu.h
parentinclude/linux/compiler*.h: make compiler-*.h mutually exclusive (diff)
downloadkernel-qcow2-linux-4d8dfafc5cb88fe294a9273a3ef75dd4f9fa1aa2.tar.gz
kernel-qcow2-linux-4d8dfafc5cb88fe294a9273a3ef75dd4f9fa1aa2.tar.xz
kernel-qcow2-linux-4d8dfafc5cb88fe294a9273a3ef75dd4f9fa1aa2.zip
cifs: create a define for how many iovs we need for an SMB2_open()
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2pdu.h')
-rw-r--r--fs/cifs/smb2pdu.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h
index a2eeae9e0432..8fb7887f2b3d 100644
--- a/fs/cifs/smb2pdu.h
+++ b/fs/cifs/smb2pdu.h
@@ -614,6 +614,18 @@ struct smb2_tree_disconnect_rsp {
#define SMB2_CREATE_TAG_POSIX 0x93AD25509CB411E7B42383DE968BCD7C
+/*
+ * Maximum number of iovs we need for an open/create request.
+ * [0] : struct smb2_create_req
+ * [1] : path
+ * [2] : lease context
+ * [3] : durable context
+ * [4] : posix context
+ * [5] : time warp context
+ * [6] : compound padding
+ */
+#define SMB2_CREATE_IOV_SIZE 7
+
struct smb2_create_req {
struct smb2_sync_hdr sync_hdr;
__le16 StructureSize; /* Must be 57 */