summaryrefslogtreecommitdiffstats
path: root/rust/helpers
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2025-04-16 16:48:26 -0600
committerJens Axboe <axboe@kernel.dk>2025-04-17 11:59:12 -0600
commitb419bed4f0a62c65a57dd495185821dd56bc435c (patch)
tree5990977344f44446681900c2b1b6e9d0a1ef748a /rust/helpers
parent80c7378f94cf193cb3bd2101bbcd5aea78d0e211 (diff)
downloadlinux-b419bed4f0a62c65a57dd495185821dd56bc435c.tar.gz
linux-b419bed4f0a62c65a57dd495185821dd56bc435c.tar.bz2
linux-b419bed4f0a62c65a57dd495185821dd56bc435c.zip
io_uring/rsrc: ensure segments counts are correct on kbuf buffers
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>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions