projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68fe256
)
io_uring: return boolean value for io_alloc_async_data
author
Hao Xu
<haoxu@linux.alibaba.com>
Wed, 22 Sep 2021 10:15:22 +0000
(18:15 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 19 Oct 2021 11:49:53 +0000
(
05:49
-0600)
boolean value is good enough for io_alloc_async_data.
Signed-off-by: Hao Xu <haoxu@linux.alibaba.com>
Link:
https://lore.kernel.org/r/20210922101522.9179-1-haoxu@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
patch
|
blob
|
history
diff --git
a/fs/io_uring.c
b/fs/io_uring.c
index 3801f2e5ea1bc838acba72459d44ed57772ecc4a..3ced6a7bdf2b5245bd8aa86153756b555eb19ee3 100644
(file)
--- a/
fs/io_uring.c
+++ b/
fs/io_uring.c
@@
-3301,7
+3301,7
@@
static void io_req_map_rw(struct io_kiocb *req, const struct iovec *iovec,
}
}
-static inline
int
io_alloc_async_data(struct io_kiocb *req)
+static inline
bool
io_alloc_async_data(struct io_kiocb *req)
{
WARN_ON_ONCE(!io_op_defs[req->opcode].async_size);
req->async_data = kmalloc(io_op_defs[req->opcode].async_size, GFP_KERNEL);