]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/io_uring.c
io_uring: simplify io_req_map_rw()
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 13 Jul 2020 19:59:18 +0000 (22:59 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 24 Jul 2020 18:55:44 +0000 (12:55 -0600)
commitb64e3444d4e1c71fe148a4f4535395b1fdd73200
tree5869c54192f97b1ba36f51551ef8b5303e3ad5b0
parente73751225bae1e9b67e957afb273366fbb6ca136
io_uring: simplify io_req_map_rw()

Don't deref req->io->rw every time, but put it in a local variable. This
looks prettier, generates less instructions, and doesn't break alias
analysis.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c