]> git.baikalelectronics.ru Git - kernel.git/commit
fix nfs O_DIRECT advancing iov_iter too much
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 13 Apr 2017 13:31:51 +0000 (09:31 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 17 Apr 2017 18:23:20 +0000 (14:23 -0400)
commit2cf202716d478e61d93b691e699ecb0a2166b3ba
treec25285b57766761f1508985be799535075bbf3f5
parent84bf942ccd65bd2c753a5ea74a4c9d0a6d5051b1
fix nfs O_DIRECT advancing iov_iter too much

It leaves the iterator advanced by the amount of IO it has requested
instead of the amount actually transferred.  Among other things,
that confuses the hell out of generic_file_splice_read().

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/nfs/direct.c