diff options
author | Jens Axboe <axboe@kernel.dk> | 2021-10-21 18:22:35 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-25 19:36:24 +0300 |
commit | 6b19b766e8f077f29cdb47da5003469a85bbfb9c (patch) | |
tree | 8ae1c68714c880a644ac05094491b74d86e9f590 /fs/direct-io.c | |
parent | 4c3d8accdce26afa8089609593aa92965b500f72 (diff) | |
download | linux-6b19b766e8f077f29cdb47da5003469a85bbfb9c.tar.xz |
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 'fs/direct-io.c')
-rw-r--r-- | fs/direct-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/direct-io.c b/fs/direct-io.c index 453dcff0e7f5..654443558047 100644 --- a/fs/direct-io.c +++ b/fs/direct-io.c @@ -307,7 +307,7 @@ static ssize_t dio_complete(struct dio *dio, ssize_t ret, unsigned int flags) if (ret > 0 && dio->op == REQ_OP_WRITE) ret = generic_write_sync(dio->iocb, ret); - dio->iocb->ki_complete(dio->iocb, ret, 0); + dio->iocb->ki_complete(dio->iocb, ret); } kmem_cache_free(dio_cache, dio); |