diff options
author | Jens Axboe <axboe@kernel.dk> | 2021-10-21 17:22:35 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-25 18:36:24 +0200 |
commit | 6b19b766e8f077f29cdb47da5003469a85bbfb9c (patch) | |
tree | 8ae1c68714c880a644ac05094491b74d86e9f590 /drivers/block/loop.c | |
parent | usb: remove res2 argument from gadget code completions (diff) | |
download | linux-6b19b766e8f077f29cdb47da5003469a85bbfb9c.tar.xz linux-6b19b766e8f077f29cdb47da5003469a85bbfb9c.zip |
fs: get rid of the res2 iocb->ki_complete argument
The second argument was only used by the USB gadget code, yet everyone
pays the overhead of passing a zero to be passed into aio, where it
ends up being part of the aio res2 value.
Now that everybody is passing in zero, kill off the extra argument.
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/loop.c')
-rw-r--r-- | drivers/block/loop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 7bf4686af774..469d87e24fd4 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -554,7 +554,7 @@ static void lo_rw_aio_do_completion(struct loop_cmd *cmd) blk_mq_complete_request(rq); } -static void lo_rw_aio_complete(struct kiocb *iocb, long ret, long ret2) +static void lo_rw_aio_complete(struct kiocb *iocb, long ret) { struct loop_cmd *cmd = container_of(iocb, struct loop_cmd, iocb); @@ -627,7 +627,7 @@ static int lo_rw_aio(struct loop_device *lo, struct loop_cmd *cmd, lo_rw_aio_do_completion(cmd); if (ret != -EIOCBQUEUED) - cmd->iocb.ki_complete(&cmd->iocb, ret, 0); + lo_rw_aio_complete(&cmd->iocb, ret); return 0; } |