projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ed9e09
)
io_uring/kbuf: shrink nr_iovs/mode in struct buf_sel_arg
author
Jens Axboe
<axboe@kernel.dk>
Thu, 8 Aug 2024 18:54:55 +0000
(12:54 -0600)
committer
Jens 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
patch
|
blob
|
blame
|
history
diff --git
a/io_uring/kbuf.h
b/io_uring/kbuf.h
index 2ed141d7662e13b8d7142ac0a4b0cc31c7a797dd..ab30aa13fb5eeb92c744f467498f4fcc727fcf43 100644
(file)
--- 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;
-
in
t nr_iovs;
-
in
t mode;
+
unsigned shor
t nr_iovs;
+
unsigned shor
t mode;
};
void __user *io_buffer_select(struct io_kiocb *req, size_t *len,