From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B3170C4332F for ; Tue, 13 Dec 2022 20:50:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236757AbiLMUud (ORCPT ); Tue, 13 Dec 2022 15:50:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236751AbiLMUuc (ORCPT ); Tue, 13 Dec 2022 15:50:32 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 944F917400; Tue, 13 Dec 2022 12:50:31 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3972A61697; Tue, 13 Dec 2022 20:50:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74393C433EF; Tue, 13 Dec 2022 20:50:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670964630; bh=SpgJ+obKx83Lq1XBPYt1iT5OGJo7ww6maCEqb/nwhgY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vN10+gkiNN/rsh59ISL6F7Haurw/ZTKR4Qfs3CoSQswlux28y4JMV2a/foBi8GPLJ lrrtVheMczkZls9rcbTLJIncYGOCnr+43zKxLXtLl5T3HDvu6pMUCVvPWt873MgcTT ti2c7WcSUkfelWwidSiSi6lY1/4zdwpF2fTpn77UbYxrqrZ80TQsRlOBapKYWzjG8M 1O+xS6fzhPAzA/PJ/zChGxZjLRo5t4nwu/SuD+wDjV2OH7RXFxgmLFZd5rDCyEvMv1 34U7tL0eTuPXdEZDRaGYtyAf2ASEmrc/TENdbtWSvwtQPpOSdakWq8IdiBKikAE06R Q464gs56KXBJg== Date: Tue, 13 Dec 2022 12:50:28 -0800 From: Eric Biggers To: Andrey Albershteyn Cc: linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [RFC PATCH 00/11] fs-verity support for XFS Message-ID: References: <20221213172935.680971-1-aalbersh@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221213172935.680971-1-aalbersh@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org On Tue, Dec 13, 2022 at 06:29:24PM +0100, Andrey Albershteyn wrote: > Not yet implemented: > - No pre-fetching of Merkle tree pages in the > read_merkle_tree_page() This would be helpful, but not essential. > - No marking of already verified Merkle tree pages (each read, the > whole tree is verified). This is essential to have, IMO. You *could* do what btrfs does, where it caches the Merkle tree pages in the inode's page cache past i_size, even though btrfs stores the Merkle tree separately from the file data on-disk. However, I'd guess that the other XFS developers would have an adversion to that approach, even though it would not affect the on-disk storage. The alternatives would be to create a separate in-memory-only inode for the cache, or to build a custom cache with its own shrinker. - Eric