]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2b78802f51e39fd22308f4f7f27b8483bd319bd8
treea74959fdf8e98b0333abb88b223871ff3da4524a
parentc95cb3c605d22f2bf50c9dd68402feb1e5e04a78
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