Skip to content
Commit 2c855de9 authored by Al Viro's avatar Al Viro
Browse files

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: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent ca591967
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment