Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1310416rwl; Wed, 5 Apr 2023 15:15:29 -0700 (PDT) X-Google-Smtp-Source: AKy350Y8GQRpPQpcu02OJ9620HmaU0y6KyKYIVmZ4aJ2OKmUEywacWdwNV4r4aGtQay1D5gU0d+8 X-Received: by 2002:a17:907:7e95:b0:932:f88c:c2ff with SMTP id qb21-20020a1709077e9500b00932f88cc2ffmr4890952ejc.34.1680732929644; Wed, 05 Apr 2023 15:15:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680732929; cv=none; d=google.com; s=arc-20160816; b=EcOXFMANh2+VkFvDJmq9HDw8rySNI/jnCNhxMgAQKIB+li2AEGmrO51LfMPYYbAQjq DA+QARHWUU26Cr1aJiU4UHWO5E7Z2Ty1bhjxcQ+eqUGGP3GllPkkoSM35eJPNCJ6Im/H decKkx0H9F+dgjG/iZ6JXO/eRq8z6p/Hsfl6KuIKSpw7o+pv5JfGa0owYzyO8fdAdcT1 4H8iGNE7ms19qOMMUeuZHZDNARRZMmoPDpqtT7zzpG5E5MeHfVejMFrOI/kC8sa03HyT uTBc5Ch2BrucZNMcMyfLeiILmKrB58zJzHWiGYCpFwJKpzCAw+quo8U9+wKBW2as5o8+ cXzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=sr4CJdOOx/6apQcfPjVNK8msYC2J6U4ttJpvFiO5hDA=; b=MBJm+5GncdENdHboOFtx6JPQeFiT+pOVOhCqiXdC84sQDtGq0obvPKZbJDnoqw5v/e OhtCL7Ia7p7U1HpjseKZt7VSdnbPJH4j/HILLsM7T/vWhxJEk8iLaD88lgNd4V04+0X/ Xy/neR4jOf5vY3hZk46gEGQs6hTUM/fyX2Po3c/JtEX3Dttm6RL8XcndZYzhMPBZcTYI imAIjDrv5LqkXxrhsIohKZXisEl3A8fy2mW+9bKC8s2gGY8P4ycKdGeKh2UE5qoEuuBI j+l8EjLCCBRjbCfdZEFAApNDhZefYCBNMej0zo225/rPksBFjqbysvMmYK5e5qUhHSAt bkcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fromorbit-com.20210112.gappssmtp.com header.s=20210112 header.b=m04BZY35; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fromorbit.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h9-20020a1709070b0900b008ceed901431si2521613ejl.360.2023.04.05.15.15.04; Wed, 05 Apr 2023 15:15:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@fromorbit-com.20210112.gappssmtp.com header.s=20210112 header.b=m04BZY35; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fromorbit.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230527AbjDEWPA (ORCPT + 99 others); Wed, 5 Apr 2023 18:15:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229969AbjDEWO7 (ORCPT ); Wed, 5 Apr 2023 18:14:59 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B3985BA9 for ; Wed, 5 Apr 2023 15:14:59 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id cm5so18813243pfb.0 for ; Wed, 05 Apr 2023 15:14:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fromorbit-com.20210112.gappssmtp.com; s=20210112; t=1680732898; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=sr4CJdOOx/6apQcfPjVNK8msYC2J6U4ttJpvFiO5hDA=; b=m04BZY35RD6EaPYELcRel51CNq6xM8X8aXbJWM0zpFJg5R9ZEfx3ALXHe27ZQTx/ML RjdLwwAr7+4sz13cFeM+4MFXL0NDeO0sDJVA9EpyReHBMnIHkm92ebNusykZudTLT4kb ZJt9w2GuxyrtFAj7oogjC2Nr0HL+r4kpZ6lzOt6rcmOuXKj15Zw+5iQ9+bIRQa16RXYd mqYE+wyM7waca64HeD0ztnx4PCy2qkyJsPtmJxS4X1sOHozTDe94atNRk2yRkagS/8TC Xykh3m9EUSbsut3dD/LJF9fvakINcF2XcNSqQnSe8WA/qL2Bzj/UsimauCtRgN2YOZNg vv0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680732898; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=sr4CJdOOx/6apQcfPjVNK8msYC2J6U4ttJpvFiO5hDA=; b=wKuVtMOHjqBP+Ts24gmXU3bOud+lEVlXCpK+0+M5HvczOmiVhMqgb8KKmPPp6mLBgf Jztnw9f7Kia/7aMeVzNyhQa+RPtY6SeSQbOMyMgNtGeH0B1bzi3j/9Ebi7q6r+jU1nrY NIgz9zf6vnT0o5SvS2wGS7l6lN6UspMGi1a+CXEB7mbRAwT61md3QYt+hmwRtBj5hfLX 8kHnkoCKbLm4/vmvTINimq54xnwAyu7qdFSM+pmrHsL5y+mCRH5C4VqbUA3xcCgkasX/ +cRkI15JBpM4Osjy/NUFrm+QW/zSR7opxlG5TENkcMIQ/6WmBSIczQSgih38dv6+KINx RaAA== X-Gm-Message-State: AAQBX9cLg1ZAaMKRcRgduFWXEJq4+yN7SEn37PDqG5NjKH+coSgRd6tP 1Xk5rlVWOkJFUZF+oxmLtFy69w== X-Received: by 2002:aa7:9a44:0:b0:626:1c2a:2805 with SMTP id x4-20020aa79a44000000b006261c2a2805mr5960988pfj.25.1680732898541; Wed, 05 Apr 2023 15:14:58 -0700 (PDT) Received: from dread.disaster.area (pa49-181-91-157.pa.nsw.optusnet.com.au. [49.181.91.157]) by smtp.gmail.com with ESMTPSA id t17-20020a62ea11000000b005a9ea5d43ddsm11542560pfh.174.2023.04.05.15.14.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 15:14:58 -0700 (PDT) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1pkBP4-00HUS4-Uz; Thu, 06 Apr 2023 08:14:54 +1000 Date: Thu, 6 Apr 2023 08:14:54 +1000 From: Dave Chinner To: Eric Biggers Cc: Christoph Hellwig , "Darrick J. Wong" , Andrey Albershteyn , dchinner@redhat.com, linux-xfs@vger.kernel.org, fsverity@lists.linux.dev, rpeterso@redhat.com, agruenba@redhat.com, xiang@kernel.org, chao@kernel.org, damien.lemoal@opensource.wdc.com, jth@kernel.org, linux-erofs@lists.ozlabs.org, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, cluster-devel@redhat.com Subject: Re: [PATCH v2 19/23] xfs: disable direct read path for fs-verity sealed files Message-ID: <20230405221454.GQ3223426@dread.disaster.area> References: <20230404145319.2057051-1-aalbersh@redhat.com> <20230404145319.2057051-20-aalbersh@redhat.com> <20230404161047.GA109974@frogsfrogsfrogs> <20230405150142.3jmxzo5i27bbc4c4@aalbersh.remote.csb> <20230405150927.GD303486@frogsfrogsfrogs> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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-ext4@vger.kernel.org On Wed, Apr 05, 2023 at 06:02:47PM +0000, Eric Biggers wrote: > And I really hope that you don't want to do DIO to the *Merkle tree*, as that Not for XFS - the merkle tree is not held as file data. That said, the merkle tree in XFS is not page cache or block aligned metadata either, so we really want the same memory buffer based interface for the merkle tree reading so that the merkle tree code can read directly from the xfs-buf rather than requiring us to copy it out of the xfsbuf into temporary pages... Cheers, Dave. -- Dave Chinner david@fromorbit.com