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 DD2A21ACED5; Fri, 23 Jan 2026 07:30: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=1769153438; cv=none; b=D3grlFfVU63Jy8ZPosWWBp6GNC3V1Wco/vpu95eg/XOiLvP5lr2xKync3sTm1CK0OGxUDvsapROtR/ujwCNGis0STvR85NK6l38Av2Q594FrJebCk63OZ+CB7braQgqrdm0Wey9N+q/tFYVLfwqG6tR1N1ABKtdd/IyAxEXjw38= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769153438; c=relaxed/simple; bh=7cs8KTtnIn7YUHI145cRhMX4l5zAigUfI//KElxOWLU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RjDb1b5sbO6eX0Kr3ISpu15jPeai3fIS4d5Ma8xTA4kvaDqF+HUb5Sr34E2SlayiEhGcFsXM+M0RBN3Ts8QirtXE/jLs89Nm5HJtIpfzoui+/CYI2QPG7TNfBQR7upcn4cTrOCC9tCtP9VJ7UgJ13ehUJi6xjXgCK9t3TvxJZ2w= 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 93D62227AAE; Fri, 23 Jan 2026 08:30:25 +0100 (CET) Date: Fri, 23 Jan 2026 08:30:24 +0100 From: Christoph Hellwig To: "Darrick J. Wong" Cc: Christoph Hellwig , Eric Biggers , Al Viro , Christian Brauner , Jan Kara , David Sterba , Theodore Ts'o , Jaegeuk Kim , Chao Yu , Andrey Albershteyn , "Matthew Wilcox (Oracle)" , 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: <20260123073024.GA27731@lst.de> References: <20260122082214.452153-1-hch@lst.de> <20260122082214.452153-12-hch@lst.de> <20260122220420.GI5910@frogsfrogsfrogs> <20260123052723.GE24123@lst.de> <20260123072700.GN5910@frogsfrogsfrogs> Precedence: bulk X-Mailing-List: linux-btrfs@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: <20260123072700.GN5910@frogsfrogsfrogs> User-Agent: Mutt/1.5.17 (2007-11-01) On Thu, Jan 22, 2026 at 11:27:00PM -0800, Darrick J. Wong wrote: > > rhashtable_lookup_fast returns the struct containing the rhash_head. > > The paramters store the rhead_offset for that purpose. See rht_obj > > as used by rhashtable_lookup. > > Ahah. That's right, but (imo) a weird quirk of the rhashtable > interface. Though I only say that because *I* keep tripping over that; > maybe everyone else is ok. I don't think it's a quirk. It seems like an explicit design decision. Not one I would have taken as I think doing a container_of in the caller would be cleaner, but it is what it is.