ANDROID: fuse: passthrough: fix up build error in ki_complete

Commit 6b19b766e8 ("fs: get rid of the res2 iocb->ki_complete
argument") dropped the res2 argument in ki_complete, which broke the
build in the fuse passthrough code.

Fix this up by dropping the argument here as well.

Bug: 168023149
Cc: Alessio Balsini <balsini@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Id4c8d7bd34bda4cdfc6467446cbed9ad267ede03
This commit is contained in:
Greg Kroah-Hartman
2021-11-03 12:20:56 +01:00
parent 625ef9a5f2
commit 8c07eec25d

View File

@@ -61,14 +61,14 @@ static void fuse_aio_cleanup_handler(struct fuse_aio_req *aio_req)
kfree(aio_req);
}
static void fuse_aio_rw_complete(struct kiocb *iocb, long res, long res2)
static void fuse_aio_rw_complete(struct kiocb *iocb, long res)
{
struct fuse_aio_req *aio_req =
container_of(iocb, struct fuse_aio_req, iocb);
struct kiocb *iocb_fuse = aio_req->iocb_fuse;
fuse_aio_cleanup_handler(aio_req);
iocb_fuse->ki_complete(iocb_fuse, res, res2);
iocb_fuse->ki_complete(iocb_fuse, res);
}
ssize_t fuse_passthrough_read_iter(struct kiocb *iocb_fuse,