From: Al Viro Date: Tue, 4 Feb 2014 19:07:43 +0000 (-0500) Subject: cifs_iovec_read: keep iov_iter between the calls of cifs_readdata_to_iov() X-Git-Tag: v3.15-rc1~16^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f25bba819a3;p=pandora-kernel.git cifs_iovec_read: keep iov_iter between the calls of cifs_readdata_to_iov() ... we are doing them on adjacent parts of file, so what happens is that each subsequent call works to rebuild the iov_iter to exact state it had been abandoned in by previous one. Just keep it through the entire cifs_iovec_read(). And use copy_page_to_iter() instead of doing kmap/copy_to_user/kunmap manually... Signed-off-by: Al Viro --- Reading git-diff-tree failed