Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5401286rdb; Wed, 13 Dec 2023 07:42:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IG9pWJFdCczBQ72YmbVx9Q1ZYBU1e+kxrsgx0ySaya/9jb2afvUs4TQ5OVMRi32s9ZCVV/n X-Received: by 2002:a05:6a00:9391:b0:6c3:468c:6caa with SMTP id ka17-20020a056a00939100b006c3468c6caamr8715869pfb.6.1702482134046; Wed, 13 Dec 2023 07:42:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702482134; cv=none; d=google.com; s=arc-20160816; b=huLeKkwOQ9+FYbHAZfuwodODw+ZJ3PVKcAtf8OfxNx6ouL3QWM8d6grc+t17LSHV4I jTPN5zft91mrIMHxUP14pscBgow2qjAIK8JrchsBowo60YW6e9vUUP3TLP7tkK+c7pe/ XWCfuIomTAybCq+pg2zs9QHkNK+/wfWkBFpM6ThoVPaZZqBDUez5B9V8csUzA5jADQk6 z3Olw6gSDQ5AWHF6z+zUYWsUWefdcOip2DVnLcSEA8QhNeWmbLHW0DDZSXToEm/5ML8k JCcd0Dqq5P59DajFa+rkLYO7ul80BPL0qPVoy6+d2UNblEp6e0rxzVz9fDGmHSLbE0ls ZOEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jdMK2KsBWpd3n96cWJQ992Ioikk1fLU4p2UyRf9hgqM=; fh=/d04rGhva23/oMvvc+i8J/J8+GzO8KYoVKSGWp4U6JE=; b=a79KEHGTiykw8IfKQFslZzXnnsiSq4cYvkcz28nSG0Bfd9CfMHV+kTK39KBqUUCS/W +HgLYWtdsShgJy5qhaPoK3voBlrQciySe1UsuaRQQ+WEZRKrujXEHygfGspWOFnE5eE6 gcCaJ7dZVbxXrRnu8p8SrNfiR+S8N+XhqQa6IC4U0UdWX+dxL6DwhYbkxLH+uhTDfKXD 0TV+47GtopmpYjgHshwLMQehBLnicc3SJBRkjJ9OSRVE/9J4y0KfrfBirecZpCE13pf4 /xGoglfx2AluJwqq8fQRk5up9uB9Do3CW1AQzDJzVfIcpVVY1S8Nkq9ilsOo9p9qdNvU EqgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Dp9usrPo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id k80-20020a628453000000b006ce76562916si9680311pfd.377.2023.12.13.07.42.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 07:42:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Dp9usrPo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 19D0280B87E0; Wed, 13 Dec 2023 07:42:10 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442181AbjLMPl5 (ORCPT + 99 others); Wed, 13 Dec 2023 10:41:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235368AbjLMPlv (ORCPT ); Wed, 13 Dec 2023 10:41:51 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56A78F5 for ; Wed, 13 Dec 2023 07:41:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702482116; 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=jdMK2KsBWpd3n96cWJQ992Ioikk1fLU4p2UyRf9hgqM=; b=Dp9usrPoPLfXiByIBluibvpdyD9qxmDi3Z4fQQJYWWv3Q+5J7mz+xwdbTbfHAI3Kd9cwaK FvYE8pwDTmFyVgFEu0uxs5RkH8VDbwdep/EUKwCf8jr5e9V4sPKN3ea8jTVpn/673z1pMO adAznf2hmFMncgrb2mI6jjDVCvcyElY= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-588-jGrwNu_PNXyGiaXqvbNtcw-1; Wed, 13 Dec 2023 10:41:50 -0500 X-MC-Unique: jGrwNu_PNXyGiaXqvbNtcw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8C3C18828CF; Wed, 13 Dec 2023 15:41:49 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.2]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9E92851E3; Wed, 13 Dec 2023 15:41:46 +0000 (UTC) From: David Howells To: Jeff Layton , Steve French Cc: David Howells , Matthew Wilcox , Paulo Alcantara , Shyam Prasad N , Tom Talpey , Christian Brauner , linux-cachefs@redhat.com, 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 , Shyam Prasad N , Rohith Surabattula Subject: [PATCH v4 01/13] netfs: Rearrange netfs_io_subrequest to put request pointer first Date: Wed, 13 Dec 2023 15:41:27 +0000 Message-ID: <20231213154139.432922-2-dhowells@redhat.com> In-Reply-To: <20231213154139.432922-1-dhowells@redhat.com> References: <20231213154139.432922-1-dhowells@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 13 Dec 2023 07:42:10 -0800 (PST) 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 cc: Steve French cc: Shyam Prasad N cc: Rohith Surabattula cc: Jeff Layton 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(-) diff --git a/include/linux/netfs.h b/include/linux/netfs.h index 2005ad3b0e25..c927df141385 100644 --- a/include/linux/netfs.h +++ b/include/linux/netfs.h @@ -204,8 +204,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 */