diff options
author | Ming Lei <ming.lei@redhat.com> | 2024-04-07 21:27:59 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-04-15 08:10:26 -0600 |
commit | bbbef3e9d2a82754bd72a86ba1352cfc17bf31a7 (patch) | |
tree | 6af946d4d61b04c5cae1993cf0778d7f1ea26ed2 /io_uring/io_uring.c | |
parent | c29006a2456bc9c2aea09e4a8958b4d9a7dfcb5a (diff) | |
download | linux-stable-bbbef3e9d2a82754bd72a86ba1352cfc17bf31a7.tar.gz linux-stable-bbbef3e9d2a82754bd72a86ba1352cfc17bf31a7.tar.bz2 linux-stable-bbbef3e9d2a82754bd72a86ba1352cfc17bf31a7.zip |
io_uring: return void from io_put_kbuf_comp()
The only caller doesn't handle the return value of io_put_kbuf_comp(), so
change its return type into void.
Also follow Jens's suggestion to rename it as io_put_kbuf_drop().
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20240407132759.4056167-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/io_uring.c')
-rw-r--r-- | io_uring/io_uring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index 9d389bd89006..b7984442dd84 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -381,7 +381,7 @@ static void io_clean_op(struct io_kiocb *req) { if (req->flags & REQ_F_BUFFER_SELECTED) { spin_lock(&req->ctx->completion_lock); - io_put_kbuf_comp(req); + io_kbuf_drop(req); spin_unlock(&req->ctx->completion_lock); } |