io_uring/kbuf: shrink nr_iovs/mode in struct buf_sel_arg
authorJens Axboe <axboe@kernel.dk>
Thu, 8 Aug 2024 18:54:55 +0000 (12:54 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 25 Aug 2024 14:27:01 +0000 (08:27 -0600)
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>
io_uring/kbuf.h

index 2ed141d7662e13b8d7142ac0a4b0cc31c7a797dd..ab30aa13fb5eeb92c744f467498f4fcc727fcf43 100644 (file)
@@ -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,