summaryrefslogtreecommitdiff
path: root/fs/io_uring.c
diff options
context:
space:
mode:
authorHao Xu <haoxu@linux.alibaba.com>2021-09-22 18:15:22 +0800
committerJens Axboe <axboe@kernel.dk>2021-10-19 05:49:53 -0600
commit8d4af6857c6fb5b1922218e93052bee29eb540f4 (patch)
tree3f3b41de8d8d30f64ecd1f96cfda251f9f833a44 /fs/io_uring.c
parent68fe256aadc0db70cb27132a6f5583819794d867 (diff)
downloadlwn-8d4af6857c6fb5b1922218e93052bee29eb540f4.tar.gz
lwn-8d4af6857c6fb5b1922218e93052bee29eb540f4.zip
io_uring: return boolean value for io_alloc_async_data
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>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r--fs/io_uring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index 3801f2e5ea1b..3ced6a7bdf2b 100644
--- 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);