]> git.baikalelectronics.ru Git - kernel.git/commit
cifs_iovec_read: keep iov_iter between the calls of cifs_readdata_to_iov()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 4 Feb 2014 19:07:43 +0000 (14:07 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 2 Apr 2014 03:19:23 +0000 (23:19 -0400)
commitefa1e6c0ba2e6e74a9a1b29d86ee76727cc3cd2a
treed93d7fcf6db340dc8078b18555d0abb4611ef488
parenta864f15acab3030cb3352c8fb7c1d3141e92c9a0
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 <viro@zeniv.linux.org.uk>
fs/cifs/file.c