From: Jeff Layton Date: Wed, 19 Oct 2011 19:28:17 +0000 (-0400) Subject: cifs: turn read_from_socket into a wrapper around a vectorized version X-Git-Tag: v3.2-rc1~133^2~9^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42c4dfc213190fafffc53815c2ee6064430bc379;p=pandora-kernel.git cifs: turn read_from_socket into a wrapper around a vectorized version Eventually we'll want to allow cifsd to read data directly into the pagecache. In order to do that we'll need a routine that can take a kvec array and pass that directly to kernel_recvmsg. Unfortunately though, the kernel's recvmsg routines modify the kvec array that gets passed in, so we need to use a copy of the kvec array and refresh that copy on each pass through the loop. Reviewed-and-Tested-by: Pavel Shilovsky Signed-off-by: Jeff Layton --- Reading git-diff-tree failed