diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2018-08-21 11:49:21 +1000 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-08-23 15:10:40 -0500 |
commit | 4d8dfafc5cb88fe294a9273a3ef75dd4f9fa1aa2 (patch) | |
tree | 6d149db6a331999d117ab697cda9d19bf49e3b73 /fs/cifs/smb2ops.c | |
parent | 815f0ddb346c196018d4d8f8f55c12b83da1de3f (diff) | |
download | lwn-4d8dfafc5cb88fe294a9273a3ef75dd4f9fa1aa2.tar.gz lwn-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/smb2ops.c')
-rw-r--r-- | fs/cifs/smb2ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c index 541258447c4c..247a98e6c856 100644 --- a/fs/cifs/smb2ops.c +++ b/fs/cifs/smb2ops.c @@ -1582,7 +1582,7 @@ smb2_queryfs(const unsigned int xid, struct cifs_tcon *tcon, struct smb_rqst rqst[3]; int resp_buftype[3]; struct kvec rsp_iov[3]; - struct kvec open_iov[5]; /* 4 + potential padding. */ + struct kvec open_iov[SMB2_CREATE_IOV_SIZE]; struct kvec qi_iov[1]; struct kvec close_iov[1]; struct cifs_ses *ses = tcon->ses; @@ -1603,7 +1603,7 @@ smb2_queryfs(const unsigned int xid, struct cifs_tcon *tcon, memset(&open_iov, 0, sizeof(open_iov)); rqst[0].rq_iov = open_iov; - rqst[0].rq_nvec = 4; + rqst[0].rq_nvec = SMB2_CREATE_IOV_SIZE; oparms.tcon = tcon; oparms.desired_access = FILE_READ_ATTRIBUTES; |