Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp806205rdb; Fri, 17 Nov 2023 13:22:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IFKuPmFwfx+/jYi21ySfbWw9GUAyYlIVFaWJdHED0Y+BdFa8T4MK+TfSs8Pl4xAwwAqGR1w X-Received: by 2002:a17:902:db03:b0:1cc:492c:2918 with SMTP id m3-20020a170902db0300b001cc492c2918mr1016217plx.69.1700256147116; Fri, 17 Nov 2023 13:22:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700256147; cv=none; d=google.com; s=arc-20160816; b=M8BSPQhd+ogS0ivRlkr1vVFJ70uzWHKk2lJxqtc+gBIysDToXw+mlieTEUd/FWibnl k2BqoEqUNcvFfP2u9pTIh+t79c0gaQm+8eNiu77psRmxiHgdKn7Alr/3BBZKhZ5PNJoP E+GZzc5Ie40owfuX+9GVHtjtxHQ99U7I3M1xVhsktTV4WlR817nXwHAvki4gw+4JQEF6 IRI47rPko3MmxImTKNnIoQ/BMSfcVG+eW+M7rDV4kQZKhizCXDHn6eXsD3KmuGXhTIgI 1Wb9XrjafpcCFNZarSUDp7LBZ/UpQu6S8HEhEGQXNvSVW5djSdu70I0yaRSL7WXNN2yk t/8A== 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=QKXGchFVFu30VVEYlT0R28R+sLxOTLkYu3+LCMsGmr8=; fh=AI41B/YzCSs7tBbUxY970+MFg5Gw1IjT3WzpBEwdswQ=; b=rc4BLSJkkqv3CCwEd4ZBAXrf/C0IUwcyn9HMtGqaP/5+ZRfXTmfUKZ6kKvM4A2x2FK p1KUr8pn5YkL44o04HRDBpVZYFzokG8oUkxDAtZgTZ5lT5tBS5UJSG/oAG1S52Wr3TvM s+wmCL0BBSsxeOJ/ph68keid9fS1V3Tml/kkOTdcJm5Mth8HGXyaTKYgNnMTawIPZVxd cdSkGP0XVPVhuoeJ8H8kT/4crn69r0Q+v/rxM0xQlI0BDAYL7CLGASUwB+XfoxGJiQXx 3z/IzaplKkEBdn8gV1Gue7WawGzWKh2khGhdlVJdS0aTaYvhCzo41XddMoMLglLXlfxO yUcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JZEFdX54; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id b18-20020a170902d51200b001c3b4eb2135si2682033plg.463.2023.11.17.13.22.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 13:22:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JZEFdX54; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-nfs-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 groat.vger.email (Postfix) with ESMTP id A94998071063; Fri, 17 Nov 2023 13:21:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232705AbjKQVUi (ORCPT + 99 others); Fri, 17 Nov 2023 16:20:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346384AbjKQVUP (ORCPT ); Fri, 17 Nov 2023 16:20:15 -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 ED57C1731 for ; Fri, 17 Nov 2023 13:18:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700255905; 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=QKXGchFVFu30VVEYlT0R28R+sLxOTLkYu3+LCMsGmr8=; b=JZEFdX54tTgewphiksQ6EpSg0nCWX/4jczsR9aSyILgDYF1Rj/lGegJDWHjDlUCXr4UOWv T23lLB03Cyii0BVr9BoBFwrgjDCZ20LhnvRUYJgxNZR7dX9+n+LLGBFej59+gw9uROzd30 KlXuE3okgQ8B31G5oP5wONIgZWOChtM= 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-547-IluzVOTwOhCkxzWhqG888w-1; Fri, 17 Nov 2023 16:18:21 -0500 X-MC-Unique: IluzVOTwOhCkxzWhqG888w-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (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 B6B37811E7E; Fri, 17 Nov 2023 21:18:20 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id AFB782026D4C; Fri, 17 Nov 2023 21:18:17 +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 , 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 v2 39/51] netfs: Rearrange netfs_io_subrequest to put request pointer first Date: Fri, 17 Nov 2023 21:15:31 +0000 Message-ID: <20231117211544.1740466-40-dhowells@redhat.com> In-Reply-To: <20231117211544.1740466-1-dhowells@redhat.com> References: <20231117211544.1740466-1-dhowells@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 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=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 17 Nov 2023 13:21:40 -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 39f885fea383..7d9b61d21a70 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 */