• Al Viro's avatar
    ITER_PIPE: clean pipe_advance() up · 2c855de9
    Al Viro authored
    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>
    2c855de9
iov_iter.c 48.9 KB