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 C8DFD288CA3 for ; Mon, 26 Jan 2026 04:44:34 +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=1769402675; cv=none; b=S/hpaVZ2Qc549PlMWguAigERDED8ol/t2xtITdOaxz9UW4OsvMXTZeD4MFlgOAz9ekYeQI9k+qyfQALxjwd1/TkqxCteeCHOtc2EpoCV0RMvjrhewKH3JWaozp6VEnGB66L+m3jg7M18z1aD4n6EVJoXg+Nl3GuJOcUECe5u58k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769402675; c=relaxed/simple; bh=bagBlzNDVxaK20m6YpouE39DaLfPFoD0cliWgNaDsqE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=brEexJLxVBlb0F4iUxdwA4O/z1inV4q4DciTHdpFjwDV2pJsWumB8wmT01PlcZxBbTolAjC0tAGnjqvCQqTFTpJxZdPMCah0Ovs7dLMGCdPQSowpuYn5+3wr2Vzsr2ay1J9ajTnkmWy2VBFETIamCFXOmWID6yGzjdbZBaWqI9g= 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 BE26F227A88; Mon, 26 Jan 2026 05:44:32 +0100 (CET) Date: Mon, 26 Jan 2026 05:44:32 +0100 From: Christoph Hellwig To: Matthew Wilcox Cc: Eric Biggers , Christoph Hellwig , Al Viro , Christian Brauner , Jan Kara , David Sterba , Theodore Ts'o , Jaegeuk Kim , Chao Yu , Andrey Albershteyn , linux-fsdevel@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, fsverity@lists.linux.dev Subject: Re: [PATCH 11/11] fsverity: use a hashtable to find the fsverity_info Message-ID: <20260126044432.GE30803@lst.de> References: <20260122082214.452153-1-hch@lst.de> <20260122082214.452153-12-hch@lst.de> <20260125013104.GA2255@sol> Precedence: bulk X-Mailing-List: fsverity@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) On Sun, Jan 25, 2026 at 09:48:22PM +0000, Matthew Wilcox wrote: > Is there a reason not to do as DAX did: > +#ifdef CONFIG_FS_VERITY > #define S_VERITY (1 << 16) /* Verity file (using fs/verity/) */ > +#else > +#define S_VERITY 0 /* Make all the verity checks disappear */ > +#endif > #define S_KERNEL_FILE (1 << 17) /* File is in use by the kernel (eg. fs/cachefiles) */ > #define S_ANON_INODE (1 << 19) /* Inode is an anonymous inode */ > > > and then we can drop the CONFIG_FS_VERITY check here and in (at leaast) > three other places I looked into this, but wasn't entirely sure about all callers. Also in at least some places we might need the barrier in fsverity_active, so my plan was to see how many of the checks should simply be converted to fsverity_active in a follow on and how much is left after that first.