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 /fs/overlayfs/file.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 'fs/overlayfs/file.c')
-rw-r--r-- | fs/overlayfs/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/overlayfs/file.c b/fs/overlayfs/file.c index c88ac571593d..ac461a499882 100644 --- a/fs/overlayfs/file.c +++ b/fs/overlayfs/file.c @@ -272,14 +272,14 @@ static void ovl_aio_cleanup_handler(struct ovl_aio_req *aio_req) kmem_cache_free(ovl_aio_request_cachep, aio_req); } -static void ovl_aio_rw_complete(struct kiocb *iocb, long res, long res2) +static void ovl_aio_rw_complete(struct kiocb *iocb, long res) { struct ovl_aio_req *aio_req = container_of(iocb, struct ovl_aio_req, iocb); struct kiocb *orig_iocb = aio_req->orig_iocb; ovl_aio_cleanup_handler(aio_req); - orig_iocb->ki_complete(orig_iocb, res, res2); + orig_iocb->ki_complete(orig_iocb, res); } static ssize_t ovl_read_iter(struct kiocb *iocb, struct iov_iter *iter) |