public inbox for [email protected]
 help / color / mirror / Atom feed
* [PATCH] io_uring: return boolean value for io_alloc_async_data
@ 2021-09-22 10:15 Hao Xu
  2021-09-22 15:51 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Hao Xu @ 2021-09-22 10:15 UTC (permalink / raw)
  To: Jens Axboe; +Cc: io-uring, Pavel Begunkov, Joseph Qi

boolean value is good enough for io_alloc_async_data.

Signed-off-by: Hao Xu <[email protected]>
---
 fs/io_uring.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/io_uring.c b/fs/io_uring.c
index 91e4c89abf78..05c449ea3fd3 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -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);
-- 
2.24.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] io_uring: return boolean value for io_alloc_async_data
  2021-09-22 10:15 [PATCH] io_uring: return boolean value for io_alloc_async_data Hao Xu
@ 2021-09-22 15:51 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2021-09-22 15:51 UTC (permalink / raw)
  To: Hao Xu; +Cc: io-uring, Pavel Begunkov, Joseph Qi

On 9/22/21 4:15 AM, Hao Xu wrote:
> boolean value is good enough for io_alloc_async_data.

Applied for 5.16, thanks.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-22 15:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-22 10:15 [PATCH] io_uring: return boolean value for io_alloc_async_data Hao Xu
2021-09-22 15:51 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox