]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring/rsrc: simplify the bvec iter count calculation
authorBui Quang Minh <minhquangbui99@gmail.com>
Fri, 3 Jan 2025 15:04:11 +0000 (22:04 +0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 3 Jan 2025 17:54:14 +0000 (10:54 -0700)
commit2a51c327d4a4a2eb62d67f4ea13a17efd0f25c5c
tree8fa8817b18252e4f4e589f4b66ee2d790903b31a
parentd62c2f0d82753a05133411b1e242baf31f4ef68e
io_uring/rsrc: simplify the bvec iter count calculation

As we don't use iov_iter_advance() but our own logic in io_import_fixed(),
we can remove the logic that over-sets the iter's count to len + offset
then adjusts it later to len. This helps to make the code cleaner.

Signed-off-by: Bui Quang Minh <minhquangbui99@gmail.com>
Link: https://lore.kernel.org/r/20250103150412.12549-1-minhquangbui99@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rsrc.c