Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp776422rdb; Fri, 17 Nov 2023 12:20:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IHLDhIXh89X2P/Rj4je36qLwv6RRIJSRUWnUbCV0wThHsuD8Ki+llskqc5GjqXgrBWkkIvj X-Received: by 2002:a05:6e02:156e:b0:359:3e84:f79 with SMTP id k14-20020a056e02156e00b003593e840f79mr880510ilu.3.1700252456449; Fri, 17 Nov 2023 12:20:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700252456; cv=none; d=google.com; s=arc-20160816; b=gleNdgkBmv4kClbmXGD8IgCvSlRz5fTS1Oy3Fe1EEr9lzok66OZENt8mPwqcfkQDJb R9Vqd9UaJmihAiRr8F5gr141QjjCgEZgcf7RtIiq1sAZt2FthZlPf4jh0afIDP4noFqK 17+yG/z111h6BjOt3op7MHLn+fpYu5mJ5ssPEz+2OBt0lJPVwLR0gWa/sARf/MjUGdOo q6QtdBwvApx1G9oZGIny1gtUK5m/+0FVSMZEvIxQ60Q4eP5k2HILb0OlF79/WvHrxWyQ lfO3Dai1rmxFaQo1PrhLj6U4To9teKx87vjOVoBLlfKbgc1UdQPnSAgSr5WtPmQ9X9kY BmLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-transfer-encoding :content-id:mime-version:subject:cc:to:references:in-reply-to:from :organization:dkim-signature; bh=l+BNmDbrtEyuQCyrbUz9aldF1aT4f1N0gQBae9tgTTs=; fh=sSAx+bUtldeKgKS5wET1oNYyKD1uRKp33QFaO2SDcsM=; b=kR157ljHKzcSqVnDe+E+7nkN2PBrLXCQPXlkCSXc6+LGLl9QrffjXLfpcB/2s7D5ZT BRLiocKR3YuP9egwRXJ67Rz2+tOmxP91i0rW+GZnbHB9V3iZ8RLrz7lpYjNzGiZwfyQx tO3nINqX+eZEOQ80XH6JSGqDS+2N7FheIzDYR9LL+MshTvqhJXMXkbhXwquR5s8QqcuL z8LTS4TIlhL7eaX/HdHcG01EL436+7YdtJ1/dMYybTPLANaPqYwSqo64AGOKBUlHwHqm wuud6FkX7yL+40oO9OtMJnkR7oGzbVP5xkl/rc/jwFJDpmSNEZcz0c+rPdjCy9cGnuz5 kbaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GBhnHWLO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id h2-20020a636c02000000b005b9302f3e47si2464522pgc.3.2023.11.17.12.20.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 12:20:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GBhnHWLO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 3ED5282AAE9B; Fri, 17 Nov 2023 12:20:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229535AbjKQUUp (ORCPT + 99 others); Fri, 17 Nov 2023 15:20:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230383AbjKQUUj (ORCPT ); Fri, 17 Nov 2023 15:20:39 -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 DB9E7D7E for ; Fri, 17 Nov 2023 12:20:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700252435; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=l+BNmDbrtEyuQCyrbUz9aldF1aT4f1N0gQBae9tgTTs=; b=GBhnHWLOS31ssavDw4mG/n0FU1tT2K3SOYoWTTgYXBws+ko7R/28wTt7IWaTz0Q172QKuc qx0MqlIOGSLRuF0NR/o81f8ES5bGz8czW2N4AWyRZCwhzJNjyCOrjv26FyrAnYT0RD5+mZ NmQFgjWDweuR8VJV1oRlfUK/J7jn7aE= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-644-bE-HCbx0Neap455BGMeg-A-1; Fri, 17 Nov 2023 15:20:30 -0500 X-MC-Unique: bE-HCbx0Neap455BGMeg-A-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (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 EC6F33C100A2; Fri, 17 Nov 2023 20:20:28 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6CF30C22541; Fri, 17 Nov 2023 20:20:26 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <20231013160423.2218093-1-dhowells@redhat.com> <20231013160423.2218093-12-dhowells@redhat.com> To: Jeff Layton Cc: dhowells@redhat.com, Steve French , Matthew Wilcox , Marc Dionne , Paulo Alcantara , Shyam Prasad N , Tom Talpey , Dominique Martinet , Ilya Dryomov , Christian Brauner , 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, linux-cachefs@redhat.com Subject: Re: [RFC PATCH 11/53] netfs: Add support for DIO buffering MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1722478.1700252425.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable Date: Fri, 17 Nov 2023 20:20:25 +0000 Message-ID: <1722479.1700252425@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 17 Nov 2023 12:20:55 -0800 (PST) Jeff Layton wrote: > > + struct bio_vec *direct_bv; /* DIO buffer list (when handling iovec-= iter) */ > > void *netfs_priv; /* Private data for the netfs */ > > + unsigned int direct_bv_count; /* Number of elements in bv[] */ > = > nit: "number of elements in direct_bv[]" > = > Also, just for better readability, can you swap direct_bv and > netfs_priv? Then at least the array and count are together. Yeah - and stick a __counted_by() on too. David