OSDN Git Service

io_uring: extract io_sendmsg_copy_hdr()
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 12 Jul 2020 17:41:06 +0000 (20:41 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 24 Jul 2020 18:55:44 +0000 (12:55 -0600)
commit2ae523ed07f14391d685651f671a7858fe8c368a
tree8914a2ef0033af4c56501fd57e092829711ca225
parent1400e69705baf98d1c9cb73b592a3a68aab1d852
io_uring: extract io_sendmsg_copy_hdr()

Don't repeat send msg initialisation code, it's error prone.
Extract and use a helper function.

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