+22
−5
Loading
kbuf imports have the front offset adjusted and segments removed, but the tail segments are still included in the segment count that gets passed in the iov_iter. As the segments aren't necessarily all the same size, move importing to a separate helper and iterate the mapped length to get an exact count. Reviewed-by:Nitesh Shetty <nj.shetty@samsung.com> Signed-off-by:
Jens Axboe <axboe@kernel.dk>