ITER_PIPE: clean iov_iter_revert()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 12 Jun 2022 21:54:35 +0000 (17:54 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 19 Jul 2022 17:08:46 +0000 (13:08 -0400)
commit94ae03e992488bde45f050435d4d0f9eee537862
treec52110c0e6a66bc6d726eb3cf7d6403aa027ec05
parentd67ffcc9d38b4d44ba20277843bcb4eca0e0878c
ITER_PIPE: clean iov_iter_revert()

Fold pipe_truncate() into it, clean up.  We can release buffers
in the same loop where we walk backwards to the iterator beginning
looking for the place where the new position will be.

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