]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcc80784ec8c72dd75c8a41b94ecd823745de5042
tree3f12ea5d5642eca31b8480bbfb43e421ba28ed28
parent24a653656030eaf8c54fe48b4919e6d78f4765e2
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