io_uring/net: clean up io_msg_copy_hdr
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 22 Oct 2024 14:43:15 +0000 (15:43 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 23 Oct 2024 13:27:21 +0000 (07:27 -0600)
commit81653ff1bab433367ebbedeb28bc19e7de37df84
treedb5dd8eba45bca590bef8d20a8b9ba49cfa6441c
parentbacf9f93e39cba8eca02f0d44c82d44875610095
io_uring/net: clean up io_msg_copy_hdr

Put sr->umsg into a local variable, so it doesn't repeat "sr->umsg->"
for every field. It looks nicer, and likely without the patch it
compiles into a bunch of umsg memory reads.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/26c2f30b491ea7998bfdb5bb290662572a61064d.1729607201.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c