]> git.baikalelectronics.ru Git - kernel.git/commit
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, 9 Aug 2022 02:37:18 +0000 (22:37 -0400)
commitd4b4b9cc6e67e99b5461dcdf6e3434c6799c6b4e
tree1cec98a604162a4b3f752d0c15dc1f67d11dcd9c
parent8498b21c5341903588d78b33c548aca3a4767219
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