From 604449f2fe6b56b4989931d2584eef85cdb13f8c Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Fri, 6 May 2022 08:02:47 +0200 Subject: [PATCH] simplify async size Same as for the prep handler. --- fs/io_uring.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/io_uring.c b/fs/io_uring.c index 8afa62ec6bc2..f72fed9a1ccf 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -1286,8 +1286,7 @@ static const struct io_op_def io_op_defs[] = { [IORING_OP_URING_CMD] = { .needs_file = 1, .plug = 1, - .async_size = 2 * sizeof(struct io_uring_sqe) - - offsetof(struct io_uring_sqe, cmd), + .async_size = 2 * sizeof(struct io_uring_sqe), }, }; -- 2.50.1