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)
commit8e54cadab447dae779f80f79c87cbeaea9594f60
treef4b4b68d40369757544c9000349bbb0ec5de38e7
parent3ad0e83cf86bcaeb6ca3c37060a3ce866b25fb42
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