From 0d10bd77a1be0742a12e1bcf0554a4bcbdbc0f35 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 18 Mar 2024 16:25:58 -0600 Subject: io_uring: get rid of struct io_rw_state A separate state struct is not needed anymore, just fold it in with io_async_rw. Signed-off-by: Jens Axboe --- io_uring/rw.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'io_uring/rw.h') diff --git a/io_uring/rw.h b/io_uring/rw.h index f7905070d10b..7824896dc52d 100644 --- a/io_uring/rw.h +++ b/io_uring/rw.h @@ -2,18 +2,14 @@ #include -struct io_rw_state { - struct iov_iter iter; - struct iov_iter_state iter_state; - struct iovec fast_iov[UIO_FASTIOV]; -}; - struct io_async_rw { union { size_t bytes_done; struct io_cache_entry cache; }; - struct io_rw_state s; + struct iov_iter iter; + struct iov_iter_state iter_state; + struct iovec fast_iov[UIO_FASTIOV]; struct iovec *free_iovec; struct wait_page_queue wpq; }; -- cgit v1.2.3