]> 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)
commitad84311f32eb928341b09c74484eded36373f092
tree3f12ea5d5642eca31b8480bbfb43e421ba28ed28
parentd4b4b9cc6e67e99b5461dcdf6e3434c6799c6b4e
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