Skip to contentSkip to conversation

io_uring: return boolean value for io_alloc_async_data

PATCH In review Hao Xu 2 participants 2 messages Sep 22, 2021

Subsystems (2)
lore
Share & tools
lore

Hao Xu

author
#0 lore raw

PATCH 1/1 io_uring: return boolean value for io_alloc_async_data

boolean value is good enough for io_alloc_async_data.

---
 fs/io_uring.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/io_uring.c +1 -1
index 91e4c89abf78..05c449ea3fd3 100644
@@ -3309,7 +3309,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);
Signature · 1 line
2.24.4
maintainer
#1 lore raw
Quoted 1 line · Hao Xu

boolean value is good enough for io_alloc_async_data.

Applied for 5.16, thanks.

Signature · 1 line
Jens Axboe