Skip to content

Commit 1204433

Browse files
committed
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 <[email protected]>
1 parent 7ed9e09 commit 1204433

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

io_uring/kbuf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ struct buf_sel_arg {
5656
struct iovec *iovs;
5757
size_t out_len;
5858
size_t max_len;
59-
int nr_iovs;
60-
int mode;
59+
unsigned short nr_iovs;
60+
unsigned short mode;
6161
};
6262

6363
void __user *io_buffer_select(struct io_kiocb *req, size_t *len,

0 commit comments

Comments
 (0)