summaryrefslogtreecommitdiffstats
path: root/io_uring/io_uring.h
diff options
context:
space:
mode:
authorDylan Yudaken <dylany@meta.com>2022-11-25 11:34:10 +0100
committerJens Axboe <axboe@kernel.dk>2022-11-25 14:10:46 +0100
commit27f35fe9096b183d45ff6f22ad277ddf107d8428 (patch)
tree37efcb70f0aa34cb6104c342df841246224d8057 /io_uring/io_uring.h
parentio_uring: allow multishot polled reqs to defer completion (diff)
downloadlinux-27f35fe9096b183d45ff6f22ad277ddf107d8428.tar.xz
linux-27f35fe9096b183d45ff6f22ad277ddf107d8428.zip
io_uring: remove io_req_complete_post_tw
It's only used in one place. Inline it. Signed-off-by: Dylan Yudaken <dylany@meta.com> Link: https://lore.kernel.org/r/20221125103412.1425305-2-dylany@meta.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/io_uring.h')
-rw-r--r--io_uring/io_uring.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/io_uring/io_uring.h b/io_uring/io_uring.h
index dcb8e3468f1d..76659d2fc90c 100644
--- a/io_uring/io_uring.h
+++ b/io_uring/io_uring.h
@@ -37,13 +37,6 @@ bool io_aux_cqe(struct io_ring_ctx *ctx, bool defer, u64 user_data, s32 res, u32
bool allow_overflow);
void __io_commit_cqring_flush(struct io_ring_ctx *ctx);
-static inline void io_req_complete_post_tw(struct io_kiocb *req, bool *locked)
-{
- unsigned flags = *locked ? 0 : IO_URING_F_UNLOCKED;
-
- io_req_complete_post(req, flags);
-}
-
struct page **io_pin_pages(unsigned long ubuf, unsigned long len, int *npages);
struct file *io_file_get_normal(struct io_kiocb *req, int fd);