Skip to content
Commit 747b1f65 authored by Jens Axboe's avatar Jens Axboe
Browse files

iov_iter: overlay struct iovec and ubuf/len



Add an internal struct iovec that we can return as a pointer, with the
fields of the iovec overlapping with the ITER_UBUF ubuf and length
fields.

Then we can have iter_iov() check for the appropriate type, and return
&iter->__ubuf_iovec for ITER_UBUF and iter->__iov for ITER_IOVEC and
things will magically work out for a single segment request regardless
of either type.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent cd0bd57a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment