]> 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)
commitfaf3f53e450be928a358ad9b3ee9b33bc4f34070
treea74959fdf8e98b0333abb88b223871ff3da4524a
parent84e3763b083628f0cab3dd4a5e4bb2a54050c352
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