Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1948886rdb; Thu, 7 Dec 2023 13:28:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IFECRuVLTO6gnCLLKkuviacyg+mjRXJ7fWv/GdpA/etkGFt08PpUmLVY9H9dw31w7IQy1Ls X-Received: by 2002:a05:6a20:a296:b0:18f:97c:384f with SMTP id a22-20020a056a20a29600b0018f097c384fmr3479696pzl.41.1701984488635; Thu, 07 Dec 2023 13:28:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701984488; cv=none; d=google.com; s=arc-20160816; b=CtObH/oM38Fd29QU68GEtIgVmnALMQyAA6529rATkokTbNDS7v/LRMX29RwTATDaaJ J0o3OVu2Mzemp69r4Wodp6/wgwA+nc2HqKyiRc4tItcKJuLPwTIC/SQHZ0q+qBHOvRpJ ZzV8itPPKzVGrdJlhye071SIjvge957iqSrSrRYW5nkoXxEsA+nqXahWft9ETT5LXfkE Df2O4oFDXKzQtAslFD2k4fO7+yll4+sYEzKJADTqeBF09gggzrw8hNAWvHk/Pw/8EHav XGCJ1JQuBeVR1NrwEyQIf1kP0pBre+Da8HbUhBFFuHro6B7xCPLgA0POspL3/tmXfRn+ EgqA== 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=OEFFzyp4bFEviL1/y5nIotsUE5u5dYojlggq/vI/x7I=; fh=sYq5GRr4z4u7NkcTE0XnshsPQiXi0MpumQuI5P4a1/E=; b=HMg9sNwmx+7OV7yknJdBbFknC4aoa9kPydxwFJPKZaZIEDoudU5E029cLI6Md2IAcO thkJ/pS6uJkD4Mt5IH1I91NY7OmyeliIrLRhgmB2oRR01r9hVoJ+pGde3+UHq0z0EZwE omS8jGpqIzl0Kq6WWYa1mrxS5Zf9KeE88Gzv8ie2kY8o2j06U92dgTr7lLUElxW2si92 iHd/5HnbPl9Iy3gxEP7tnJSvuPdAxOkhfyF2JpCIGkdIiWFO6w5X5/AYzCuwErVqgfbD aFn3oJsJXBKbkmSE2yRq74+53NbZo/YQNvJWRggIbo+v06R56WEGZa5rFAp4pFoXJyqn rQrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="QQ8lnx+/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id c32-20020a630d20000000b005bd0f2c2671si307021pgl.626.2023.12.07.13.28.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 13:28:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="QQ8lnx+/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id A4AFA8521354; Thu, 7 Dec 2023 13:28:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235588AbjLGV1l (ORCPT + 99 others); Thu, 7 Dec 2023 16:27:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235574AbjLGV1D (ORCPT ); Thu, 7 Dec 2023 16:27:03 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 175992D60 for ; Thu, 7 Dec 2023 13:25:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701984285; 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=OEFFzyp4bFEviL1/y5nIotsUE5u5dYojlggq/vI/x7I=; b=QQ8lnx+/qPYaKk4fkTx9tEfiVIHdPSKSIbBvOn2bsK8WCUsBSg8I27GYMvS58QQI4cp2zD DQ5oF/V3jntoACFD+ihwBjYzxkxqAveasn4bxwSBQheHIZszK6pSGuAIjAOsOWBenm/+ZJ mFNYbgHkrxk/voo1DsJMXViI3Uv1s4o= 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-389-G-WYgG5wPfyVHGlg3gwHxQ-1; Thu, 07 Dec 2023 16:24:40 -0500 X-MC-Unique: G-WYgG5wPfyVHGlg3gwHxQ-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 762F2185A784; Thu, 7 Dec 2023 21:24:39 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.161]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6B7058174; Thu, 7 Dec 2023 21:24:36 +0000 (UTC) From: David Howells To: Jeff Layton , Steve French Cc: David Howells , Matthew Wilcox , Marc Dionne , Paulo Alcantara , Shyam Prasad N , Tom Talpey , Dominique Martinet , Eric Van Hensbergen , Ilya Dryomov , 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 v3 43/59] netfs: Rearrange netfs_io_subrequest to put request pointer first Date: Thu, 7 Dec 2023 21:21:50 +0000 Message-ID: <20231207212206.1379128-44-dhowells@redhat.com> In-Reply-To: <20231207212206.1379128-1-dhowells@redhat.com> References: <20231207212206.1379128-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 howler.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 (howler.vger.email [0.0.0.0]); Thu, 07 Dec 2023 13:28:04 -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 e44508850ba2..08040da65336 100644 --- a/include/linux/netfs.h +++ b/include/linux/netfs.h @@ -207,8 +207,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 */