From fde82ebdc75af69e1494e8709aad3892808b9c6a Mon Sep 17 00:00:00 2001 From: Pavel Shilovsky Date: Fri, 7 Oct 2011 18:57:45 +0400 Subject: [PATCH] --- yaml --- r: 269954 b: refs/heads/master c: 94443f43404239c2a6dc4252a7cb9e77f5b1eb6e h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/cifs/connect.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index c1fd7fdc4b32..d2b304df28ac 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a52c1eb7ae79f0a11511d49cfc00d2f9e576abea +refs/heads/master: 94443f43404239c2a6dc4252a7cb9e77f5b1eb6e diff --git a/trunk/fs/cifs/connect.c b/trunk/fs/cifs/connect.c index ff47c1842bec..82bc0d27e495 100644 --- a/trunk/fs/cifs/connect.c +++ b/trunk/fs/cifs/connect.c @@ -2809,10 +2809,10 @@ void cifs_setup_cifs_sb(struct smb_vol *pvolume_info, /* * When the server doesn't allow large posix writes, only allow a wsize of - * 128k minus the size of the WRITE_AND_X header. That allows for a write up + * 2^17-1 minus the size of the WRITE_AND_X header. That allows for a write up * to the maximum size described by RFC1002. */ -#define CIFS_MAX_RFC1002_WSIZE (128 * 1024 - sizeof(WRITE_REQ) + 4) +#define CIFS_MAX_RFC1002_WSIZE ((1<<17) - 1 - sizeof(WRITE_REQ) + 4) /* * The default wsize is 1M. find_get_pages seems to return a maximum of 256