summaryrefslogtreecommitdiff
path: root/fs/io_uring.c
diff options
context:
space:
mode:
authorJackie Liu <liuyun01@kylinos.cn>2019-12-02 12:14:52 +0300
committerJens Axboe <axboe@kernel.dk>2019-12-03 17:04:32 +0300
commit22efde5998657f6d1f31592c659aa3a9c7ad65f1 (patch)
treee29b3c15a1d9c08b36aef00fd18067d8c737d45c /fs/io_uring.c
parentda8c96906990f1108cb626ee7865e69267a3263b (diff)
downloadlinux-22efde5998657f6d1f31592c659aa3a9c7ad65f1.tar.xz
io_uring: remove parameter ctx of io_submit_state_start
Parameter ctx we have never used, clean it up. Signed-off-by: Jackie Liu <liuyun01@kylinos.cn> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r--fs/io_uring.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index c47a08afcee5..f7985f270d4a 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -3396,7 +3396,7 @@ static void io_submit_state_end(struct io_submit_state *state)
* Start submission side cache.
*/
static void io_submit_state_start(struct io_submit_state *state,
- struct io_ring_ctx *ctx, unsigned max_ios)
+ unsigned int max_ios)
{
blk_start_plug(&state->plug);
state->free_reqs = 0;
@@ -3480,7 +3480,7 @@ static int io_submit_sqes(struct io_ring_ctx *ctx, unsigned int nr,
return -EBUSY;
if (nr > IO_PLUG_THRESHOLD) {
- io_submit_state_start(&state, ctx, nr);
+ io_submit_state_start(&state, nr);
statep = &state;
}