Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iov_iter: set nr_segs = 1 for ITER_UBUF
To avoid needing to check if a given user backed iov_iter is of type ITER_IOVEC or ITER_UBUF, set the number of segments for the ITER_UBUF case to 1 as we're carrying a single segment. Signed-off-by: Jens Axboe <axboe@kernel.dk>
- Loading branch information