Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp659068pxb; Wed, 27 Jan 2021 18:18:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwwUahindiMROWR+dd+d/N6noktwM6G2W1PuGflS167X2hZb1zeuDvGjeL7rc7dhd7AizV2 X-Received: by 2002:a17:906:890:: with SMTP id n16mr8753312eje.195.1611800298456; Wed, 27 Jan 2021 18:18:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611800298; cv=none; d=google.com; s=arc-20160816; b=Ag6ehhNPSlLydtTA2tPkbX4An0JHCY7wTRhES3MkICbRFt2SZ1dyPx4J/kBXBVwSQH /kCBChSsOnAfdUdM5fOtYBuuHPU9OYe3OrtsecvR0qqIP+VM/CfGUKbKUJ/u7e4zlUdf Nr97pfBtxTNTqgydUps8A8EQyBWpoI0sjUXOAZJcnyhoj4z3RiafZra5x0atk3QoLvJg 0IvVQ1pj3zdr8X96YC9jjTjvaDIuIaLmdOuBDZeON6MGzI6pdNOhh+op9BrNacm8poP9 PTr65UTRfdcOYUdAOSvl0uUHMbFhQaHE9WLBvyd6RIhiKS+8e47A0fUrzmxYjxALZKBW xrNQ== 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=j+dpoe65NzfU23i7qgPFny1MW4ZccU91/4l1+amtr+o=; b=H2x/8aJ7KP7WPnBiABoTa1lPjBrWsKpcRoDH6+1x+GDul21zsfP8JdDyyDcJit9k0d ysCYt4CHYtHKY2e1qHxFlcBRhQG1/hNrbZVtVHIXMQx7IAc/528m8B4VApEeR4AxfUz1 +ZbwYBvjClUGXhKEynQ8/Uq48GbJC5zABkHM8aB7UuQRrz8rz7CipLnaJBiMdHRem8fP wIhFKf8Jqhqg7yS9iZFDkAo5U1B/z/beyFFOKutthACsilOERabKd8c2LfiYqia+uVD7 97cozbR2rcg1ITGTJiyqUMyxRxbxME0JCxNSKqvanB9wnh0K/IBYCUexMmQqzNG7JQm9 EghQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cssw+EuD; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v3si2101295edr.600.2021.01.27.18.17.49; Wed, 27 Jan 2021 18:18:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cssw+EuD; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229551AbhA1CRr (ORCPT + 99 others); Wed, 27 Jan 2021 21:17:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:43492 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbhA1CRr (ORCPT ); Wed, 27 Jan 2021 21:17:47 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 286BC64D9F; Thu, 28 Jan 2021 02:17:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611800226; bh=kkx2gxqL3eTEODYMMPfss/+rMKGv9VbYrVIUTu2Ff4o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Cssw+EuDfiMMpcWBMW8S00pxx9lnqxS1W91b97rL7PG0rmKgJPZ5xqF6wb/gtp2yZ GopReLJwPmf4Gnw6cSI59/I4BiHzQzOtVuXYJW2jboMdRI1BcosIqfsopkBhi9bKL2 Kp5zj2rgof2d620b1orH0QxaQ6iJO91DSkqZDfrc/AX68wLvUyw7HWTU9wD2W4evcT hmxedXHJF7yQ1O8g0ngBrivco2m6rGJhN9FY8RIgb1HApK5YmtXYmN/LYxH/9nXek5 hl2Z5vb+kxKcIdlaG9skNoOL7ACiBqHgK73pw7VZdlMxaaEz0dPjAz04TY5gHE88+v 7Gm4drqXaqNyA== Date: Wed, 27 Jan 2021 18:17:04 -0800 From: Eric Biggers To: Jaegeuk Kim Cc: linux-fscrypt@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-api@vger.kernel.org, Theodore Ts'o , Victor Hsieh Subject: Re: [PATCH 4/6] fs-verity: support reading Merkle tree with ioctl Message-ID: References: <20210115181819.34732-1-ebiggers@kernel.org> <20210115181819.34732-5-ebiggers@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Jan 27, 2021 at 05:10:39PM -0800, Jaegeuk Kim wrote: > > Minor thought: > How about invalidating or truncating merkel tree pages? > > Reviewed-by: Jaegeuk Kim > Removing them from the page cache after the read, you mean? I'm not sure we can assume that users of this ioctl would want the pages to *not* be cached, any more than we could assume that for any regular read(). I think we should just leave the pages cached (like a regular read) and not do anything special. Like other pagecache pages, the kernel will evict the Merkle tree pages eventually if they aren't being accessed anymore and memory needs to be reclaimed. - Eric