Message ID | 20231013160423.2218093-42-dhowells@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94EA0CDB483 for <linux-mm@archiver.kernel.org>; Fri, 13 Oct 2023 16:07:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3466A8004F; Fri, 13 Oct 2023 12:07:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2F38E8004B; Fri, 13 Oct 2023 12:07:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 194DF8004F; Fri, 13 Oct 2023 12:07:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 004878004B for <linux-mm@kvack.org>; Fri, 13 Oct 2023 12:07:01 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id D3813B4F75 for <linux-mm@kvack.org>; Fri, 13 Oct 2023 16:07:01 +0000 (UTC) X-FDA: 81340917042.30.FAAAB4C Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf03.hostedemail.com (Postfix) with ESMTP id 2AE0E2000E for <linux-mm@kvack.org>; Fri, 13 Oct 2023 16:06:59 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=dpjAemf9; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf03.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1697213220; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=BY0IZ1puEbWlqmZjAm/oiBzHHsszrgyhlAY+cvlLt1A=; b=akoAg1k16jJNZFAoTV+C/HJCliGuuazhe+R7rzkod9+7lEGfSAGlnSH0y/w9NTxiBBwkEG QX5uDWb+RxSHQlSkUAeKtKkY3PZmRUwYVpWWDGP+8cX9/6Z5W7H5pvxPbxnVyhqoYZ7vy9 4QhbEFIEJ+BtDU2heCq4HOCS2tsXvyA= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=dpjAemf9; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf03.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697213220; a=rsa-sha256; cv=none; b=cyzTItwjnYTE955n5EB/UZzifRHW5vj35D0YiW0yboRaSbkvWdsEX/TMF27xhI0LWYNymb KQV4WyO9e+Mq2Lhi5JYNCRJH54V+e6JeOyU0Rj7lgYh3cX88PyEMEi+bqR1dqitdafa/eQ uCNZ3cw1IkfiFfqwhkNm1zVA14RgGgI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697213219; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BY0IZ1puEbWlqmZjAm/oiBzHHsszrgyhlAY+cvlLt1A=; b=dpjAemf9lPPRglaM2d/IGN/X7O6ZlsUtcGAGwxWkRPFCH3Qv4VW5RYq+Ic4kB/BRNshCYr /BM0p0WE5p8H1CWw3d2K1nf7/er+7QNuqvkJfWfo39XE9Y4WdcFrfg6RtsEqSCvOllPeZ2 r7ywsUapYDtAlGwpMRjMaxiI4t9DQ9w= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-682-Ht3YwKPqOXqHHVTwg42j_A-1; Fri, 13 Oct 2023 12:06:52 -0400 X-MC-Unique: Ht3YwKPqOXqHHVTwg42j_A-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 11633380670B; Fri, 13 Oct 2023 16:06:51 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.226]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1556125C1; Fri, 13 Oct 2023 16:06:47 +0000 (UTC) From: David Howells <dhowells@redhat.com> To: Jeff Layton <jlayton@kernel.org>, Steve French <smfrench@gmail.com> Cc: David Howells <dhowells@redhat.com>, Matthew Wilcox <willy@infradead.org>, Marc Dionne <marc.dionne@auristor.com>, Paulo Alcantara <pc@manguebit.com>, Shyam Prasad N <sprasad@microsoft.com>, Tom Talpey <tom@talpey.com>, Dominique Martinet <asmadeus@codewreck.org>, Ilya Dryomov <idryomov@gmail.com>, Christian Brauner <christian@brauner.io>, linux-afs@lists.infradead.org, linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org, ceph-devel@vger.kernel.org, v9fs@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Steve French <sfrench@samba.org>, Shyam Prasad N <nspmangalore@gmail.com>, Rohith Surabattula <rohiths.msft@gmail.com>, linux-cachefs@redhat.com Subject: [RFC PATCH 41/53] netfs: Rearrange netfs_io_subrequest to put request pointer first Date: Fri, 13 Oct 2023 17:04:10 +0100 Message-ID: <20231013160423.2218093-42-dhowells@redhat.com> In-Reply-To: <20231013160423.2218093-1-dhowells@redhat.com> References: <20231013160423.2218093-1-dhowells@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 X-Rspam-User: X-Stat-Signature: f1pe191igwwawi4fugyfq9sxibuoox87 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 2AE0E2000E X-HE-Tag: 1697213219-144307 X-HE-Meta: U2FsdGVkX18bW356s+C0CoVHq1CEYAVzsX6s2MBeNwj/XBtE5Iwv2Ifobm5y6MEpuyCsW/haceO7eyqb6/4es4siiEETz0ZZGEqWTMjK1LXZH7eT/hcMmQnk1pRL1bixRgazak7HstARCxPLAJvOeUkWTi6a7p3axSEOL1NLc31YCyl5+BprnEFK9b5nWDL+cCfQwzzuwp035I/n7uQqde5BlVfQO3XV83QlMnsHAocaaCq0HWeH480qeqkayj2hyyqy3hd0ULnU1G5di+9BJejArAX4th4oGQf7r47k3XM373pM6ZjSr11wVwC//U1X3PEe9bf9Sccv/CQ0pVJTtfkhV0dJVn6ye5ZlgAtIhqQxbPp3Z+0c+/IQ86ZHWdMG4hRqQNRZxoDzZ+xdRp44qd/U8tVb7zjlP5Bd4yO1J5ulAxfYDF5nxYxbVtZoWjLhdJA9YmTc7xc9PAXcT3Vp3NLmwRka4AzHpVyqtJv233MDjuFTYe0vesiuo/k3RHOh1cxWJVRChGUhKRYmq2M1W6PJ1AWAkJUT/8IVpi1zn3ofb/JJxg6+kyS9v5f9sCNN5wEQLwBzCENmtETuJz7Map0Hica+sOfYcbJ5NrJAuVBp3HLm8e6ekerm3Z6r1RWtG6T/HRiM3yqBil3szMiIBB0gjnceAfLcw6rFKESCVe+bOjJgGb2LviBxg6gc8SR+1Vg6BBDbnhrFeAcf4btFJsXE1oSHpTO2JHDqVOaiDp0pi4UIqRI9fSMk4QlyXGpeapLkVmr1duUgaslKfjqTSDTUN4eftfVpdZPohguiPdCOUGrXzRSZAo1lauo9/OV47k3OvqeGnefRX3PJ5QjUEyUQkFuYRyjpNT2dytUBLoDy9DXvV26GF16hJxOjDP/QfLqf5lLga7R20g692r67ZTbxN59FvzBews+pi62dOorXVndawyYDd08wtKD4eiWQM/gByDQmnh0dgYGXSW6 oWUJrz68 u90MSdVJtOOHNscRMGS33sLafc6TINiUQlIDVJLIsIZYqJz/amn2s6ECgGPnkvorL5JK9kwmhFaJ9Q/09SEowdrVv1WknvpaCSyirHcSdGyrcxCZho5t7h2NakWjbpzq98b6GNxaG0qUvmxMsqF3ipipHdaCx1YmavZ89mirO31AnM3d+oVv3IAJKaiuQnK2SnKyZCbyn0QhLOS9Q+Wmqc97B//NFijTJCW15QUnc1YLWkrvjehVxgNrmdKdpoIj8tVfTDcxHq4hvswCJSlrgqWHLNo6n1uh+uoaguH3LL4No0qWOyEtfjkaTbYtFVF215VHHakgm35rSloEB54GvGFYEiEvdKnQ7DDjPderwT8BoVlgwMjVDIXpjeVpJ16YVNP5MIG1oILgjxw9Jtgh6c1ij3BvzqK1KRKogE4e8U4xpAmIPOE26mBEoaBPNQlwEyXPGwHrxQOH1smrSfzawkbFu4z43ldDg+mxkSunetFs0SWHTahiCFSlV6A== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
netfs, afs, cifs: Delegate high-level I/O to netfslib
|
expand
|
diff --git a/include/linux/netfs.h b/include/linux/netfs.h index c416645649e1..ff4f86ae64e4 100644 --- a/include/linux/netfs.h +++ b/include/linux/netfs.h @@ -209,8 +209,8 @@ struct netfs_cache_resources { * the pages it points to can be relied on to exist for the duration. */ struct netfs_io_subrequest { - struct work_struct work; struct netfs_io_request *rreq; /* Supervising I/O request */ + struct work_struct work; struct list_head rreq_link; /* Link in rreq->subrequests */ struct iov_iter io_iter; /* Iterator for this subrequest */ loff_t start; /* Where to start the I/O */
Rearrange the netfs_io_subrequest struct to put the netfs_io_request pointer (rreq) first. This then allows netfs_io_subrequest to be put in a union with a pointer to a wrapper around netfs_io_request for cifs. Signed-off-by: David Howells <dhowells@redhat.com> cc: Steve French <sfrench@samba.org> cc: Shyam Prasad N <nspmangalore@gmail.com> cc: Rohith Surabattula <rohiths.msft@gmail.com> cc: Jeff Layton <jlayton@kernel.org> cc: linux-cifs@vger.kernel.org cc: linux-cachefs@redhat.com cc: linux-fsdevel@vger.kernel.org cc: linux-mm@kvack.org --- include/linux/netfs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)