Jeff Layton
f7910cbd9f
cifs: clean up wsize negotiation and allow for larger wsize
...
Now that we can handle larger wsizes in writepages, fix up the
negotiation of the wsize to allow for that. find_get_pages only seems to
give out a max of 256 pages at a time, so that gives us a reasonable
default of 1M for the wsize.
If the server however does not support large writes via POSIX
extensions, then we cap the wsize to (128k - PAGE_CACHE_SIZE). That
gives us a size that goes up to the max frame size specified in RFC1001.
Finally, if CAP_LARGE_WRITE_AND_X isn't set, then further cap it to the
largest size allowed by the protocol (USHRT_MAX).
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-and-Tested-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <sfrench@us.ibm.com>
2011-05-25 20:12:16 +00:00
..
2011-04-15 15:26:14 -05:00
2011-03-31 11:26:23 -03:00
2011-03-24 10:16:26 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-24 10:16:26 -07:00
2011-05-20 12:50:29 -07:00
2011-03-31 11:26:23 -03:00
2011-05-11 10:44:48 -07:00
2011-05-25 20:12:16 +00:00
2011-03-25 17:45:16 -07:00
2011-05-18 04:08:16 -07:00
2011-05-19 16:55:28 +09:30
2011-03-22 17:44:17 -07:00
2011-03-31 11:26:23 -03:00
2011-04-25 18:49:46 -05:00
2011-03-10 08:52:07 +01:00
2011-03-31 11:26:23 -03:00
2011-03-15 02:21:44 -04:00
2011-03-31 11:26:23 -03:00
2011-04-08 07:35:17 -07:00
2011-04-11 15:45:47 -07:00
2011-03-24 10:16:26 -07:00
2011-03-31 11:26:23 -03:00
2011-05-10 17:35:58 +02:00
2011-05-20 13:28:45 -07:00
2011-03-24 10:16:26 -07:00
2011-03-24 10:16:26 -07:00
2011-05-09 09:04:24 -07:00
2011-03-22 17:44:02 -07:00
2011-03-24 10:16:26 -07:00
2011-03-31 11:26:23 -03:00
2011-04-11 15:45:47 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-05-20 12:50:29 -07:00
2011-03-24 10:16:26 -07:00
2011-03-31 11:26:23 -03:00
2011-05-11 22:52:13 -04:00
2011-03-31 11:26:23 -03:00
2011-04-20 11:03:01 -04:00
2011-05-10 22:19:50 +09:00
2011-04-07 11:14:49 -07:00
2011-03-31 11:26:23 -03:00
2011-05-13 11:27:30 -07:00
2011-03-24 10:16:26 -07:00
2011-05-20 16:40:36 -07:00
2011-05-09 16:22:07 -07:00
2011-05-16 11:05:00 -07:00
2011-03-10 08:52:07 +01:00
2011-04-08 07:35:17 -07:00
2011-04-14 16:06:56 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-05-13 16:05:51 -07:00
2011-03-24 10:16:26 -07:00
2011-05-02 19:23:48 +03:00
2011-03-24 10:16:26 -07:00
2011-04-07 11:14:49 -07:00
2011-05-09 18:35:04 -05:00
2011-03-24 10:16:26 -07:00
2011-03-31 11:26:23 -03:00
2011-04-14 16:06:55 -07:00
2011-03-31 11:26:23 -03:00
2011-03-17 11:11:05 +01:00
2011-03-31 11:26:23 -03:00
2011-04-29 10:17:26 +02:00
2011-03-24 19:01:30 -07:00
2011-03-21 00:16:08 -04:00
2011-05-20 12:50:29 -07:00
2011-03-24 10:16:26 -07:00
2011-03-24 21:16:32 -04:00
2011-02-21 15:07:04 -08:00
2011-03-31 11:26:23 -03:00
2011-03-23 10:37:00 +01:00
2011-03-23 19:47:13 -07:00
2011-04-14 16:06:56 -07:00
2011-03-21 00:16:09 -04:00
2011-03-16 13:26:17 -07:00
2011-04-28 11:28:20 -07:00
2011-04-17 10:42:01 -07:00
2011-03-31 11:26:23 -03:00
2011-03-23 19:47:13 -07:00
2011-05-22 11:26:02 -07:00
2011-03-24 21:17:51 -04:00
2011-03-21 00:16:08 -04:00
2011-03-16 19:01:29 -07:00
2011-03-24 08:20:39 -07:00
2011-03-16 19:01:29 -07:00
2011-03-31 11:26:23 -03:00
2011-03-10 08:52:26 +01:00
2011-05-21 00:12:16 -07:00
2011-04-12 13:35:56 -07:00
2011-03-14 09:15:28 -04:00
2011-03-21 01:10:41 -04:00
2011-03-21 00:16:08 -04:00
2011-03-15 02:21:45 -04:00
2011-03-14 09:15:28 -04:00
2011-05-19 14:10:49 +00:00
2011-03-24 10:16:26 -07:00
2011-03-23 19:47:13 -07:00
2011-04-21 07:34:44 -07:00