summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifssmb.c
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilovsky@samba.org>2014-07-10 08:16:25 +0200
committerSteve French <smfrench@gmail.com>2014-08-02 08:23:04 +0200
commitb3160aebb49b5e07f6bc3b8c5bed6013ca9e422e (patch)
treeb0c53abb14383d17878ece629d656acd95bcfbe1 /fs/cifs/cifssmb.c
parentCIFS: Use separate var for the number of bytes got in async read (diff)
downloadlinux-b3160aebb49b5e07f6bc3b8c5bed6013ca9e422e.tar.xz
linux-b3160aebb49b5e07f6bc3b8c5bed6013ca9e422e.zip
CIFS: Count got bytes in read_into_pages()
that let us know how many bytes we have already got before reconnect. Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r--fs/cifs/cifssmb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c
index 1781a03aed5e..57d447c56d83 100644
--- a/fs/cifs/cifssmb.c
+++ b/fs/cifs/cifssmb.c
@@ -1513,7 +1513,6 @@ cifs_readv_receive(struct TCP_Server_Info *server, struct mid_q_entry *mid)
return length;
server->total_read += length;
- rdata->got_bytes = length;
cifs_dbg(FYI, "total_read=%u buflen=%u remaining=%u\n",
server->total_read, buflen, data_len);