Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6447027rdb; Tue, 2 Jan 2024 02:04:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IHiEWf9+rUPoHZyAMHOV4bRKf/vM+0lnwz/j/ewSMJFT3d7yJUYlHFqPKnagWRr2wLBUW92 X-Received: by 2002:a17:903:182:b0:1d4:326c:1c89 with SMTP id z2-20020a170903018200b001d4326c1c89mr7135482plg.10.1704189857109; Tue, 02 Jan 2024 02:04:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704189857; cv=none; d=google.com; s=arc-20160816; b=l7EkqTPNkEdrSoG3MXPwHLCGiB7NCD6rR90XzpfMc656bF9ndbk+xwrZMzsPww/DJh y9VOTuAkkxdOE+vHuvVCgTK2dpQMuPsbD8Z8DARht4AmpO4R+ZVD8BBsmZE4oeo6Rv1f kNVQLB67mIxAF2hdlQz8XSDT9GWcQ7rC5UnuXqqqg2lznvseqfg5NipkHmKOZkNAcE62 Gs+AORHyg5SQeSj1j27mVi8Vl/UnIGdjl4+/5DydVhts0578X6Q0Cdx7920WVnmRThZX 308XzhhYMiaP4hyZDBIotPgGTG6m4ihfQQ3AEWE1GW9uBA9kC+JT3gFpA0ZzEWEB0uBb F9ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:content-transfer-encoding:content-id:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:cc:to :references:in-reply-to:from:organization:dkim-signature; bh=Ny2AxAZYQ7Swi2tyUfwPdF1yJ0tRqtIF7a9WoAXifeI=; fh=221UCelVwsbXRERRC8Jz+cv/BPnRJfoygsR1f5OtM/Y=; b=l06zFZ4ZNxr0h5W/2dWMDU4zdjAHzPi+AsSfKK4dKXxfUFG3lJ9UU0e9Pb6wy0kLgc maEtcexpFeXg1x3286hg1ZbmN1ew8pIFfnIotp8HF+vrpPDZXEoZcn4tHZWMRwKBordY h6iEReikHXEwCSIM7GPeXwED7BVushWsZBfvZIVdD3l2aFcbBeWCnpHQdAYGgh+D3xal gXsI4UcQheqE2zEIujAjhg/xmZGGAcJ80cBDhsnxvixd3IS+w8RZJPNzIakcczAUGP5C tnz43LU7RQ0wQ4adQQiRuvFAEdOf8pmm9HsjnkVJQnF02UD0T14Gg0LhrM8zPiJBAvyE lPiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FwV3rcr7; spf=pass (google.com: domain of linux-kernel+bounces-14223-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14223-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n7-20020a170902e54700b001d388b96b88si20061925plf.270.2024.01.02.02.04.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 02:04:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14223-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FwV3rcr7; spf=pass (google.com: domain of linux-kernel+bounces-14223-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14223-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E1BD3282EEF for ; Tue, 2 Jan 2024 10:04:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 691EFDDDD; Tue, 2 Jan 2024 10:04:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="FwV3rcr7" X-Original-To: linux-kernel@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 4C647DDA8 for ; Tue, 2 Jan 2024 10:04:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704189844; 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=Ny2AxAZYQ7Swi2tyUfwPdF1yJ0tRqtIF7a9WoAXifeI=; b=FwV3rcr7rOuCgZZYQwmdK6sJBserHqGLJ7Vse2/tSOTQy7Hbn1+98r8NPi3g9WvhyxRF20 /JF5Efa34csfnOfqOBbzWgDf15DZHUPlOH8u9q8sOIFg2E67YzQhW1muC4oFmrfGUb9FN8 6CtSJKC8NndKSJ8+yYPFVAaFfK3Tyjo= 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-452-aZo05vPBPjuywjIBm9BzJA-1; Tue, 02 Jan 2024 05:04:00 -0500 X-MC-Unique: aZo05vPBPjuywjIBm9BzJA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (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 49075101A52A; Tue, 2 Jan 2024 10:04:00 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.68]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7B44A2166B31; Tue, 2 Jan 2024 10:03:59 +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: <3490948.1704185806@warthog.procyon.org.uk> To: Matthew Wilcox Cc: dhowells@redhat.com, Christoph Hellwig , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: bio_vec, bv_page and folios 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-ID: <5778.1704189838.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable Date: Tue, 02 Jan 2024 10:03:58 +0000 Message-ID: <5779.1704189838@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 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 t= he page later? David