Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp699561rbb; Sat, 24 Feb 2024 22:37:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXEX2x50wdyWc3gBFI//GtKAqBFYPefzZCb+tVsF9CXOxJKFhwTZ7qHWfoXAxut28RfI1DMZr1Dcq6g3mHgCnvS+7VjtFE1q0Ci+sqmDQ== X-Google-Smtp-Source: AGHT+IHRCIz8dEykQCYa9nFenet5GwYSCOOYIbsyY6LeD+N+giPCnP/OalfMXAXkbhTkLxg40Xkw X-Received: by 2002:a05:6830:1dac:b0:6e4:8147:a01c with SMTP id z12-20020a0568301dac00b006e48147a01cmr4894329oti.9.1708843046214; Sat, 24 Feb 2024 22:37:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708843046; cv=pass; d=google.com; s=arc-20160816; b=gSEJFVzMgB81cBBoIqLJ55LGij4EDWJKxmL/Ql0iIT4vNIa5yl699hCnFsA0pTM6ND 1nlUyo7kffVI1P/kGdy2I62o7nnKOXONdUqiNwdcaqY/7htwd5jrHPJcJIA0FvG8ier3 w1KEF/rWIfQcrJODA8pCKezyso5lpXI8HzMUnlgooxCrXcccL9n00sHuFipBeYRI9L8S sr3b+2ybfYK4M20qRla9cZJTcuRCzZwGrbfd53t0ar5830Ih24dMWCBxhnbT547IRzbm Rc/8i2FGNUQpu0ZUE/P/Oyx+eiZKtJue3F5oHcyJvyrDEDfp9KlTNkyBINB7SgHyAXfb p+aA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZrQ8W+B1AMS2nUPltqOMynR8aXJX0AGXtieDYWeYmKo=; fh=YXSkwl1V6O0p2QHcRC/lOxbAhzvfkKG02oE1MZ2+Ruw=; b=O6isNr3a4yvRG5yj19rJqNUw9tb3WmJxKAI+sq3Rvy/2e3FNc61rZPIwLQS7p8ZIcD zrNcaKUfrISi/+Af1PZZ3M/eO9oMUx0qTExJ3FQJCLDcikHTo7v0mE8NM+xjt3iZI9td wAQlORJwKo92w3h+C+jOlDY8iIraYOX3PXAlcRVijUC8+SO5tchiufV/oIpMZhmRIjwn Yk9WAK9XFGkZ8uSRBWYlli7oYczZWaSCXRMsH/5BcKt0vqyKNPtY3nOtWopu5gohf1Pm Rf9gfU82OfCBidRSjDPUjmgkRdiRJPKtXtigS1hMpg9oQiIHAHNf9i6Fvw2+dXYeCQOO bwoQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W89162Uc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79993-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79993-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id u15-20020aa7848f000000b006e4ec0dfe3bsi1855424pfn.43.2024.02.24.22.37.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 22:37:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79993-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W89162Uc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79993-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79993-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 851BBB20FF2 for ; Sun, 25 Feb 2024 06:37:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 59059DF53; Sun, 25 Feb 2024 06:37:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="W89162Uc" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7697CDDA1; Sun, 25 Feb 2024 06:37:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708843022; cv=none; b=WWs0WCT0wYVPxckmbRXnu0GF92xfaYZpNd1qUCSfghbMMz0lCLHuCaRTJ/YCvhJa1UHAA+IFtPrBXXT82Tw39leMlSzDXID9Itel+lFmtr6/khh9sRI5OLNZIZa5sBWBrV3PBB6215QMFVnyA7+CT11yQmZx5nvJVAXeiWyUhwk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708843022; c=relaxed/simple; bh=psIxjbB2eHg/0lZMfYZ5mFCMKddHlA4ICHNEKYJYGD8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CzQEXYsufwelLfJp+dRShpq4RngQ8yZrymtiCG8Y7X2aVAdAakStDnGAieC5Ns8n/fg3O3h1kbzKwItL/pDiNCGqOaQvxVGfhbRw2eNpZim0qFSF/bOu/ZIG93maicwcc14+SwMOOKoCnp/bDI68mwOFjVBirKUYAwIGZB5YRJw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=W89162Uc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FDEAC433C7; Sun, 25 Feb 2024 06:37:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708843022; bh=psIxjbB2eHg/0lZMfYZ5mFCMKddHlA4ICHNEKYJYGD8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W89162UcIRK6wLLVq/CMBHDcVBA0EkelKIVlvLAWSR0s7f0iWPFnqvaQTofQosjS8 1wK023loHZw6fKZh3Q20szJtaQZNXtYwxjaiQFeJff/QBpqBv8ScciTjkVK+8+/Pr9 0df9Uozz/GzJ3jYSmK4Juj4oNRxqUpjH193oRmXRDAi3MUjFq/iZJGVngOJBTCIWpO qB1o50iHi5n+3S29xljS1R61UwevNA2iWlQkAJm7f5iZP+G1P91PVbHyDyuH26k9UV ZHvsi4svrj8CKw6XbHMuTlsWG6EUVieZCqTiV7z0sRHjFWrdKdukzT+gppC9Mx/grK c73kmmd13BMlQ== Date: Sun, 25 Feb 2024 01:38:15 -0500 From: Al Viro To: "Matthew Wilcox (Oracle)" Cc: linux-kernel@vger.kernel.org, Thomas Graf , Herbert Xu , netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, maple-tree@lists.infradead.org, rcu@vger.kernel.org Subject: Re: [PATCH 1/1] rosebush: Add new data structure Message-ID: References: <20240222203726.1101861-1-willy@infradead.org> <20240222203726.1101861-2-willy@infradead.org> Precedence: bulk X-Mailing-List: linux-kernel@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: <20240222203726.1101861-2-willy@infradead.org> On Thu, Feb 22, 2024 at 08:37:24PM +0000, Matthew Wilcox (Oracle) wrote: > Rosebush is a resizing hash table. See > Docuemntation/core-api/rosebush.rst for details. Interesting... A few obvious questions wrt dcache: * how do the locks that stuff nest wrt ->d_lock? Inside? * same for rename_lock (on rename dentries change names/parents/hash values). * we would be really forced to maintain DCACHE_UNHASHED in ->d_flags; it's not impossible to do, but will take care (protection of ->d_flags has several dark corners). * the cost of d_drop() goes up. Might or might not get painful. * if the bucket locks nest inside ->d_lock, we'd better look out for the latter getting held for longer. Might get unpleasant.