diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2018-08-21 03:49:21 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-08-23 22:10:40 +0200 |
commit | 4d8dfafc5cb88fe294a9273a3ef75dd4f9fa1aa2 (patch) | |
tree | 6d149db6a331999d117ab697cda9d19bf49e3b73 /fs/cifs/smb2pdu.c | |
parent | include/linux/compiler*.h: make compiler-*.h mutually exclusive (diff) | |
download | linux-4d8dfafc5cb88fe294a9273a3ef75dd4f9fa1aa2.tar.xz 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.c')
-rw-r--r-- | fs/cifs/smb2pdu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index 2f1938011395..5740aa809be6 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -2256,7 +2256,7 @@ SMB2_open(const unsigned int xid, struct cifs_open_parms *oparms, __le16 *path, struct TCP_Server_Info *server; struct cifs_tcon *tcon = oparms->tcon; struct cifs_ses *ses = tcon->ses; - struct kvec iov[5]; /* make sure at least one for each open context */ + struct kvec iov[SMB2_CREATE_IOV_SIZE]; struct kvec rsp_iov = {NULL, 0}; int resp_buftype; int rc = 0; @@ -2274,7 +2274,7 @@ SMB2_open(const unsigned int xid, struct cifs_open_parms *oparms, __le16 *path, memset(&rqst, 0, sizeof(struct smb_rqst)); memset(&iov, 0, sizeof(iov)); rqst.rq_iov = iov; - rqst.rq_nvec = 5; + rqst.rq_nvec = SMB2_CREATE_IOV_SIZE; rc = SMB2_open_init(tcon, &rqst, oplock, oparms, path); if (rc) |