ITER_PIPE: fold push_pipe() into __pipe_get_pages()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 11 Jun 2022 06:52:03 +0000 (02:52 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 9 Aug 2022 02:37:17 +0000 (22:37 -0400)
commite3b42964f84c028f352c11269661d47f6ca4ab2e
treea74959fdf8e98b0333abb88b223871ff3da4524a
parent8fad7767edcfd3f93e0d9985cb2dc1db270b8719
ITER_PIPE: fold push_pipe() into __pipe_get_pages()

Expand the only remaining call of push_pipe() (in
__pipe_get_pages()), combine it with the page-collecting loop there.

Note that the only reason it's not a loop doing append_pipe() is
that append_pipe() is advancing, while iov_iter_get_pages() is not.
As soon as it switches to saner semantics, this thing will switch
to using append_pipe().

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
lib/iov_iter.c