Commit 4fbdc37b authored by Pavel Shilovsky's avatar Pavel Shilovsky

Fix incorrect max RFC1002 write size value for 2.6.39

parent 2c4a9641
......@@ -2660,10 +2660,10 @@ static void 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)
/* Make the default the same as the max */
#define CIFS_DEFAULT_WSIZE CIFS_MAX_WSIZE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment