aboutsummaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2011-05-19 16:22:58 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-03 12:42:46 -0700
commit0388b9459eb4752072e4b3b61e809d3678f0bf45 (patch)
treedbcab07fc1bc873e09aa0f4d8879c190db48d197 /scripts/patch-kernel
parent5dde5952b696d0f97730ed45271d21d9e50b32f7 (diff)
cifs: clean up wsize negotiation and allow for larger wsize
commit f7910cbd9fa319ee4501074f1f3b5ce23c4b1518 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions