aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/transport.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2005-06-23 20:31:17 -0400
committerSteve French <sfrench@us.ibm.com>2005-06-23 20:31:17 -0400
commit0c0ff09329dafb165c0d9ac08965ddc0615020b1 (patch)
tree19b4cf11057b8cc740382c7d2c63b84538d45819 /fs/cifs/transport.c
parent45abc6ee2b916a235d6824a41225177bd6e5e24f (diff)
[CIFS] Performance improvement, finish up adding CIFSSMBWrite2
Signed-off-by: Steve French (sfrench@us.ibm.com)
Diffstat (limited to 'fs/cifs/transport.c')
-rw-r--r--fs/cifs/transport.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c
index 04f4af07fdd4..496a2738bbe3 100644
--- a/fs/cifs/transport.c
+++ b/fs/cifs/transport.c
@@ -197,7 +197,7 @@ smb_send2(struct socket *ssocket, struct smb_hdr *smb_buffer,
197 iov[0].iov_base = smb_buffer; 197 iov[0].iov_base = smb_buffer;
198 iov[0].iov_len = len; 198 iov[0].iov_len = len;
199 iov[1].iov_base = data; 199 iov[1].iov_base = data;
200 iov[2].iov_len = datalen; 200 iov[1].iov_len = datalen;
201 smb_msg.msg_name = sin; 201 smb_msg.msg_name = sin;
202 smb_msg.msg_namelen = sizeof (struct sockaddr); 202 smb_msg.msg_namelen = sizeof (struct sockaddr);
203 smb_msg.msg_control = NULL; 203 smb_msg.msg_control = NULL;
@@ -210,7 +210,8 @@ smb_send2(struct socket *ssocket, struct smb_hdr *smb_buffer,
210 Flags2 is converted in SendReceive */ 210 Flags2 is converted in SendReceive */
211 211
212 smb_buffer->smb_buf_length = cpu_to_be32(smb_buffer->smb_buf_length); 212 smb_buffer->smb_buf_length = cpu_to_be32(smb_buffer->smb_buf_length);
213 cFYI(1, ("Sending smb of length %d ", len + datalen)); 213 cFYI(1, ("Sending smb: hdrlen %d datalen %d",
214 smb_hdr_length,datalen));
214 dump_smb(smb_buffer, len); 215 dump_smb(smb_buffer, len);
215 216
216 while (len + datalen > 0) { 217 while (len + datalen > 0) {
@@ -233,6 +234,7 @@ smb_send2(struct socket *ssocket, struct smb_hdr *smb_buffer,
233 if(rc >= len) { 234 if(rc >= len) {
234 iov[0].iov_len = 0; 235 iov[0].iov_len = 0;
235 rc -= len; 236 rc -= len;
237 len = 0;
236 } else { /* some of hdr was not sent */ 238 } else { /* some of hdr was not sent */
237 len -= rc; 239 len -= rc;
238 iov[0].iov_len -= rc; 240 iov[0].iov_len -= rc;