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, 9 Aug 2022 02:37:18 +0000 (22:37 -0400)
commit92acdc4f37207c556baee0ea28ce0823d22b9812
tree3f12ea5d5642eca31b8480bbfb43e421ba28ed28
parent2c855de93314e9573f31044976ffd89cb70a2dbd
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