]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cifs: untangle server->maxBuf and CIFSMaxBufSize
authorJeff Layton <jlayton@redhat.com>
Tue, 11 Oct 2011 10:41:32 +0000 (06:41 -0400)
committerSteve French <smfrench@gmail.com>
Wed, 12 Oct 2011 19:47:55 +0000 (14:47 -0500)
commitbc70e6f37ce83c92bca6d88bebb332e4e7c52004
tree88c5835981e1e306248b9f9c4662510ff5b8d5e1
parentd34ab80658a08c55316765539ad0aa9fc0d65a75
cifs: untangle server->maxBuf and CIFSMaxBufSize

server->maxBuf is the maximum SMB size (including header) that the
server can handle. CIFSMaxBufSize is the maximum amount of data (sans
header) that the client can handle. Currently maxBuf is being capped at
CIFSMaxBufSize + the max headers size, and the two values are used
somewhat interchangeably in the code.

This makes little sense as these two values are not related at all.
Separate them and make sure the code uses the right values in the right
places.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
fs/cifs/cifssmb.c
fs/cifs/connect.c
fs/cifs/file.c
fs/cifs/sess.c