From: Pavel Shilovsky Date: Thu, 5 Jun 2014 15:03:27 +0000 (+0400) Subject: CIFS: Use multicredits for SMB 2.1/3 writes X-Git-Tag: cleanup-for-v3.18~61^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb7e9eabb2b584884db0d11ae0376d31ac1cfdc1;p=pandora-kernel.git CIFS: Use multicredits for SMB 2.1/3 writes If we negotiate SMB 2.1 and higher version of the protocol and a server supports large write buffer size, we need to consume 1 credit per 65536 bytes. So, we need to know how many credits we have and obtain the required number of them before constructing a writedata structure in writepages and iovec write. Reviewed-by: Shirish Pargaonkar Signed-off-by: Pavel Shilovsky Signed-off-by: Steve French --- Reading git-diff-tree failed