]> git.baikalelectronics.ru Git - kernel.git/commit
fix default_file_splice_read()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 27 Nov 2016 01:05:42 +0000 (20:05 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 27 Nov 2016 01:05:42 +0000 (20:05 -0500)
commitfdfbd3d20e14f812e775f3ae1cef43ae1b1fb0c9
treef4b4b68d40369757544c9000349bbb0ec5de38e7
parentc1797e435ebee360fc32356c1c1ba0bac3220970
fix default_file_splice_read()

Botched calculation of number of pages.  As the result,
we were dropping pieces when doing splice to pipe from
e.g. 9p.

Reported-by: Alexei Starovoitov <ast@kernel.org>
Tested-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/splice.c