ITER_PIPE: clean pipe_advance() up
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 15 Jun 2022 20:03:25 +0000 (16:03 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 19 Jul 2022 17:08:46 +0000 (13:08 -0400)
commitd67ffcc9d38b4d44ba20277843bcb4eca0e0878c
tree9a45be7311707a285a090e13e1fe6df6c1d5bcc9
parent8f90367a1fb852451d7dcbe627981df0e907b72a
ITER_PIPE: clean pipe_advance() up

instead of setting ->iov_offset for new position and calling
pipe_truncate() to adjust ->len of the last buffer and discard
everything after it, adjust ->len at the same time we set ->iov_offset
and use pipe_discard_from() to deal with buffers past that.

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