cifs: advertise the right receive buffer size to the server
authorJeff Layton <jlayton@redhat.com>
Tue, 26 Jul 2011 16:20:18 +0000 (12:20 -0400)
committerSteve French <sfrench@us.ibm.com>
Sun, 31 Jul 2011 21:20:58 +0000 (21:20 +0000)
commitc4d3396b261473ded6f370edd1e79ba34e089d7e
tree94c64f9df5092a6978bc9cf0767059a2cb07044f
parent24c3047095fa3954f114bfff2e37b8fcbb216396
cifs: advertise the right receive buffer size to the server

Currently, we mirror the same size back to the server that it sends us.
That makes little sense. Instead we should be sending the server the
maximum buffer size that we can handle -- CIFSMaxBufSize minus the
4 byte RFC1001 header.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/sess.c