]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring/nop: reuse req->buf_index
authorKeith Busch <kbusch@kernel.org>
Mon, 24 Feb 2025 21:31:07 +0000 (13:31 -0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 27 Feb 2025 14:17:39 +0000 (07:17 -0700)
commita14ca7a413ec8a9f9184c543691f890a011ed98a
tree9995870c5cc085c995ae80a804f4d000ab96ad9f
parentc5b47d5a8c0d3c657751f803295213284f432672
io_uring/nop: reuse req->buf_index

There is already a field in io_kiocb that can store a registered buffer
index, use that instead of stashing the value into struct io_nop.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250224213116.3509093-3-kbusch@meta.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/nop.c