Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6454881rdb; Tue, 2 Jan 2024 02:24:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IGktSo6s0MjgEtj/w1mT3+eKLyBuqoTCyvPM2VglTrFiay2aL+xgj/97G9XHW7ZI0frl9xN X-Received: by 2002:a81:5308:0:b0:5e7:5fb3:ae26 with SMTP id h8-20020a815308000000b005e75fb3ae26mr10973094ywb.45.1704191082593; Tue, 02 Jan 2024 02:24:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704191082; cv=none; d=google.com; s=arc-20160816; b=uUjSQLtHZtn4JUEsJp3iy7KURaZ4lUnGxcMZ2qAihEU0jWjeBs+NAlc1VsBzz3bqDY /TM+KZVJ3JkuY6OGZGEppDHZiv/XbDCFVSQtp6++3e7qUKpw4Wnh26/uSdgeYCbmBCKY wGFg0XKkayIdlcNdSOcZpF4Sou/vW9nKc1tRYNEaoT0HlDOqdtVMI0fNhMMkjcb094tH xI+xFFAil7jjR5VgmOVWf/Is1rPhEPHxIY4LmNgkdsva6HkqUCb9U2ErcunRmSKQ3rzP iJn1tcneLT/SL9+PbntTniKyNzTLzWrL2inI2RkpcQ17svpn71b/ke4mA4XbqF/Woq1U MX4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qcsy11Lg78ul7BZwYmkhJtiNOWE6BpqI+iiKcGsb37w=; fh=9S0geiFBqjMFANgb19nsPhs/K/zAtS66cojeUXYCPPs=; b=xzH8OEN42mC+OZ7mSzwX71DiBG/G5quVane3OVmAJiajhPdKVI33iP12oehuVORYE1 6TL8Q5/f50YsnvtCKL5P1v9nx8xmRmEAamPVRDuFoi2nhOoEgjw0pS1ytXouIt40uPP2 /40LRiIVLM/PRu0SfAp6ZhZwlnadQXECehDiU+Ltn8X4DAb+eHX24vWjhH+xcxzHFHau 4awJqlIeDnCZiY1Uxmax8W19a1lUGMPE9IwIe0NkuFG3WBl1151dutwb5qEHVUBFSkeR 2EPXf2x66G3iqDn6rNm0voIBbXr/n7oke2PllF7wXnVbuM8HoiCMGx2gR/ToFUL/8CkT CM+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=GaHBC0aY; spf=pass (google.com: domain of linux-kernel+bounces-14238-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14238-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s12-20020ac85ccc000000b0042826117e70si2858565qta.358.2024.01.02.02.24.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 02:24:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14238-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=GaHBC0aY; spf=pass (google.com: domain of linux-kernel+bounces-14238-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14238-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 591C71C21CA2 for ; Tue, 2 Jan 2024 10:24:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A6594D2F3; Tue, 2 Jan 2024 10:24:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="GaHBC0aY" X-Original-To: linux-kernel@vger.kernel.org Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6D41BD26A; Tue, 2 Jan 2024 10:24:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=qcsy11Lg78ul7BZwYmkhJtiNOWE6BpqI+iiKcGsb37w=; b=GaHBC0aY6K78DLMSn5V2op9276 hiLDlNytWIHRKwg4KkAuIyUSXMf3lorQYLLBjIqOiuQfTbMSmWvY4MWgVlryd7eE4KCA6+hTDUYUj F61LNgXNTKA6SiJ0/m3GfMOMXEM0roWqzeVonMDh7z5ItVWPgHZCnu9KrQmxgW5aSvVtuBIeQdvJC 9qeNo51Ekl7BnrDroXwnHwnYK1jbu9LQHMP0YIDR5nO30REp/OB6i32Rc6QJYvPJVctYoiIOG12IK k+Zbiz3hCfLPhfJFhnAE5MX0BBERdRGcIpBGlVeSAHFICdbhwf7Ri9HwvHUHJgVW9WpUnNxPlLlzm iLaVTdmg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1rKbwd-009yqz-4e; Tue, 02 Jan 2024 10:24:23 +0000 Date: Tue, 2 Jan 2024 10:24:23 +0000 From: Matthew Wilcox To: David Howells Cc: Christoph Hellwig , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: bio_vec, bv_page and folios Message-ID: References: <3490948.1704185806@warthog.procyon.org.uk> <5779.1704189838@warthog.procyon.org.uk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5779.1704189838@warthog.procyon.org.uk> On Tue, Jan 02, 2024 at 10:03:58AM +0000, David Howells wrote: > Matthew Wilcox wrote: > > > On Tue, Jan 02, 2024 at 08:56:46AM +0000, David Howells wrote: > > > Hi Christoph, Willy, > > > > > > Will bv_page in struct bio_vec ever become a folio pointer rather than I page > > > pointer? I'm guessing not as it still presumably needs to be able to point to > > > non-folio pages. > > > > My plan for bio_vec is that it becomes phyr -- a physical address + > > length. No more page or folio reference. > > Interesting... What does that mean for those places that currently use > bv_page as a place to stash a pointer to the page and use it to clean up the > page later? I don't intend to get rid of bio_for_each_folio_all() or bio_add_page() for example. It's just a phys_to_page() away. The advantage is that we wouldn't need a struct page to do I/O to a physical address.