From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A0B4D606A327 for ; Mon, 30 Nov 2026 08:27:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=bflHov8y; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ekJQ9d58 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=PhXqSXd7yJL+ueXUdMLAjs5OUwMU7K952rd5eJ9jIHk=; b=bflHov8yO2QZ58C2cN3VWBFM2Z L4OQoTp7ydNWJg7/5Lp1q/3wjx0+own3OP1jVzgRCsK7fDqHU8/LBNO5GYmauHuoI94pDDD4aeSda xA2EiRcRFHLZrzSa0c3wU/ZiREVTc1wNXj6Sy1gj7OxsUdcx1YZaWVYlSDIuITY2Cu6JdhKbUqM8z 2y2IDK6NUi+jvJaTMZWTADbk1ojDzVoi6U3G8DJl4pxhOCNN4weqeiBybtyUeLkD33m8PISr3+buC 1y7+zyF5pMqOb5VznN/DrOyH50Da3BDGr1QCxx8uyr+3W87fwDGwD0MjT0qSt7C+w9qHhvhhz+J6r vpXSBcSw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXwj9-00000003kAF-1XFL; Mon, 30 Nov 2026 08:27:11 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXwj7-00000003k7j-3OKP for linux-mtd@lists.infradead.org; Mon, 30 Nov 2026 08:27:09 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 653AC44289; Mon, 30 Nov 2026 08:27:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08B861F00898; Mon, 30 Nov 2026 08:27:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796027228; bh=hTRH53QGAt8X1e0assDVFFKRsIL06UUFtKnbpXZw76Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ekJQ9d58ZoZ+L2fmQDD3kowmUkoPTcPPknHtBNOch2qBJ5REbN7KKT8ooGa2GXJw4 /TrIPG53a6sGMj+kPQPCkRuHVocKLTx8FquPNUaajNFPYv5p50k2RM+f3zrNhNzgwg BTkbYfN4iGIUq2HgJGZuifSOW7vnyTeE+YZchgxAYpbc9ilTz6qPi5rs/Eln+TZvHW zMH10vzUztIqNDRz8/oaaRq8XKRjiZQjapM4iJ6U39qc2sMrPzniOmzel17t1CTv39 ZehNKFIEiRPdrAtix3pSBo2Bx0OD4nRDNeBA8WX+BODjJKTmD560f4aGnPGmBsqT0s SvJrRfdCZzZgA== From: "Richard Weinberger (sigma star gmbh)" To: linux-mtd@lists.infradead.org Cc: fuse-devel@lists.linux.dev, netdev@vger.kernel.org, horms@kernel.org, pabeni@redhat.com, kuba@kernel.org, edumazet@google.com, davem@davemloft.net, miklos@szeredi.hu, vigneshr@ti.com, miquel.raynal@bootlin.com, david.oberhollenzer@sigma-star.at, upstream+linux@sigma-star.at, Richard Weinberger Subject: [PATCH 05/10] fuse: Allow three output arguments per request Date: Mon, 30 Nov 2026 09:26:28 +0100 Message-ID: <20261130082634.2750846-6-rw@kernel.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261130082634.2750846-1-rw@kernel.org> References: <20261130082634.2750846-1-rw@kernel.org> X-Archived-By: MIME-Version: 1.0 X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 From: Richard Weinberger MTD reads return in-band and out-of-band data in one operation. To serve such a read with a single request, the reply has to carry a header, the in-band data and the out-of-band data, each in a buffer of its own. Raise the number of output arguments of struct fuse_args from two to three. The code which copies a reply iterates over out_numargs, so nothing else has to change. struct fuse_args is part of every request, so each of them grows by the size of one struct fuse_arg, 16 bytes on 64-bit. The first user will be MUSE. Signed-off-by: Richard Weinberger --- include/net/fuse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/fuse.h b/include/net/fuse.h index 30155f2ed17c..bd34f2025287 100644 --- a/include/net/fuse.h +++ b/include/net/fuse.h @@ -58,7 +58,7 @@ struct fuse_args { /* server requested io-uring zero-copy for this op */ bool zero_copy:1; struct fuse_in_arg in_args[4]; - struct fuse_arg out_args[2]; + struct fuse_arg out_args[3]; void (*end)(struct fuse_args *args, int error); /* Used for kvec iter backed by vmalloc address */ void *vmap_base; -- 2.55.0 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/