aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-08-08 12:54:55 -0600
committerJens Axboe <axboe@kernel.dk>2024-08-25 08:27:01 -0600
commit120443321dfaaab8eb9290af617abcc37734c1e2 (patch)
tree8a9391824d36404b63338c7a7cc81aba8e9b74ed
parentio_uring: wire up min batch wake timeout (diff)
downloadwireguard-linux-120443321dfaaab8eb9290af617abcc37734c1e2.tar.xz
wireguard-linux-120443321dfaaab8eb9290af617abcc37734c1e2.zip
io_uring/kbuf: shrink nr_iovs/mode in struct buf_sel_arg
nr_iovs is capped at 1024, and mode only has a few low values. We can safely make them u16, in preparation for adding a few more members. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to '')
-rw-r--r--io_uring/kbuf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/io_uring/kbuf.h b/io_uring/kbuf.h
index 2ed141d7662e..ab30aa13fb5e 100644
--- a/io_uring/kbuf.h
+++ b/io_uring/kbuf.h
@@ -56,8 +56,8 @@ struct buf_sel_arg {
struct iovec *iovs;
size_t out_len;
size_t max_len;
- int nr_iovs;
- int mode;
+ unsigned short nr_iovs;
+ unsigned short mode;
};
void __user *io_buffer_select(struct io_kiocb *req, size_t *len,