diff options
author | Steve French <sfrench@us.ibm.com> | 2005-06-23 19:31:17 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2005-06-23 19:31:17 -0500 |
commit | 0c0ff09329dafb165c0d9ac08965ddc0615020b1 (patch) | |
tree | 19b4cf11057b8cc740382c7d2c63b84538d45819 /fs/cifs/transport.c | |
parent | 45abc6ee2b916a235d6824a41225177bd6e5e24f (diff) | |
download | kernel_samsung_smdk4412-0c0ff09329dafb165c0d9ac08965ddc0615020b1.zip kernel_samsung_smdk4412-0c0ff09329dafb165c0d9ac08965ddc0615020b1.tar.gz kernel_samsung_smdk4412-0c0ff09329dafb165c0d9ac08965ddc0615020b1.tar.bz2 |
[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.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index 04f4af0..496a273 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, iov[0].iov_base = smb_buffer; iov[0].iov_len = len; iov[1].iov_base = data; - iov[2].iov_len = datalen; + iov[1].iov_len = datalen; smb_msg.msg_name = sin; smb_msg.msg_namelen = sizeof (struct sockaddr); smb_msg.msg_control = NULL; @@ -210,7 +210,8 @@ smb_send2(struct socket *ssocket, struct smb_hdr *smb_buffer, Flags2 is converted in SendReceive */ smb_buffer->smb_buf_length = cpu_to_be32(smb_buffer->smb_buf_length); - cFYI(1, ("Sending smb of length %d ", len + datalen)); + cFYI(1, ("Sending smb: hdrlen %d datalen %d", + smb_hdr_length,datalen)); dump_smb(smb_buffer, len); while (len + datalen > 0) { @@ -233,6 +234,7 @@ smb_send2(struct socket *ssocket, struct smb_hdr *smb_buffer, if(rc >= len) { iov[0].iov_len = 0; rc -= len; + len = 0; } else { /* some of hdr was not sent */ len -= rc; iov[0].iov_len -= rc; |