From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 0AD5E287263; Wed, 18 Feb 2026 06:18:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771395518; cv=none; b=PrHpMgGJatQf9u6r1eoS1ZXEDWKEwJDHcCtS6blvyTVXJ95HSzoGQllLrXkEZ5vj01tj3z3TclrVfPzPnHG+9wD3TJe5acpx7DWl1TFkfz/bbbzlZmPKZ1dqyDJ2VY8/kyCkuiIV6aY9aERmDKqWkREL8nzqI0uBoYqujruxe7M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771395518; c=relaxed/simple; bh=2WBKlICc8vym+a3VShiu3sWpZlKqSwFcNAMgyGD5WaI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nxtMHfa2I6ESxgvEWI5OWbBg125p8VSoXPq1nPHFM+IM72jwnrt5ZY5ofdicmfoqq5Qvotx785wwFP4J8CwLsOixpKNEjSXHOsa6E0DPxGuH+fNatPADCV5ZAQ68aRStAMEDWoNDVyx9bhL8RErgHBpxeeYvsmG3DC8SnyOH6fs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 17E2568B05; Wed, 18 Feb 2026 07:18:35 +0100 (CET) Date: Wed, 18 Feb 2026 07:18:34 +0100 From: Christoph Hellwig To: Andrey Albershteyn Cc: linux-xfs@vger.kernel.org, fsverity@lists.linux.dev, linux-fsdevel@vger.kernel.org, ebiggers@kernel.org, hch@lst.de, djwong@kernel.org Subject: Re: [PATCH v3 06/35] fsverity: pass digest size and hash of the empty block to ->write Message-ID: <20260218061834.GB8416@lst.de> References: <20260217231937.1183679-1-aalbersh@kernel.org> <20260217231937.1183679-7-aalbersh@kernel.org> Precedence: bulk X-Mailing-List: linux-fsdevel@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: <20260217231937.1183679-7-aalbersh@kernel.org> User-Agent: Mutt/1.5.17 (2007-11-01) On Wed, Feb 18, 2026 at 12:19:06AM +0100, Andrey Albershteyn wrote: > Let filesystem iterate over hashes in the block and check if these are > hashes of zeroed data blocks. XFS will use this to decide if it want to > store tree block full of these hashes. Does it make sense to pass in the zero_digest vs just having a global symbol or accessor? This should be static information.