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, 19 Jul 2022 17:08:46 +0000 (13:08 -0400)
commit3499b5def04c13eff512f12957f1b0923dbd2515
tree8c982b03b6eecbd6a7aa03a0fc123080bec9ddf3
parent15b8cc2e26f23de17d0e73221c1be2d818260032
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