splice: stop abusing iov_iter_advance() to flush a pipe
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 12 Jun 2022 20:07:49 +0000 (16:07 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 9 Aug 2022 02:37:16 +0000 (22:37 -0400)
commit0d9649341363047be60a9ec7378d8985bdd0abba
tree4367c03e3c6f81ac6a6205d186ae53cdfe65c307
parent3e20a751aff0e099cff496511fef8cdf655b3360
splice: stop abusing iov_iter_advance() to flush a pipe

Use pipe_discard_from() explicitly in generic_file_read_iter(); don't bother
with rather non-obvious use of iov_iter_advance() in there.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/splice.c