summaryrefslogtreecommitdiffstats
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
authorPavel Shilovsky2014-06-25 09:28:57 +0200
committerSteve French2014-08-02 08:23:03 +0200
commitbed9da0213f2174719b68012bd60735a11cfe244 (patch)
tree3a88a92dcf884d1a31a8896e9513a5124cbddebb /fs/cifs/connect.c
parentCIFS: Fix rsize usage for sync read (diff)
downloadkernel-qcow2-linux-bed9da0213f2174719b68012bd60735a11cfe244.tar.gz
kernel-qcow2-linux-bed9da0213f2174719b68012bd60735a11cfe244.tar.xz
kernel-qcow2-linux-bed9da0213f2174719b68012bd60735a11cfe244.zip
CIFS: Use multicredits for SMB 2.1/3 reads
If we negotiate SMB 2.1 and higher version of the protocol and a server supports large read buffer size, we need to consume 1 credit per 65536 bytes. So, we need to know how many credits we have and obtain the required number of them before constructing a readdata structure in readpages and user read. Reviewed-by: Shirish Pargaonkar <spargaonkar@suse.com> Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/connect.c')
0 files changed, 0 insertions, 0 deletions