Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp437662rdh; Thu, 23 Nov 2023 07:57:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IFKvWsEAxZ/mfZdCVWgeJ/j82mbRmwrtPvgSvtd5O/DYO/ZqdHUuhu7RJS0NRPixq5pCoZo X-Received: by 2002:a17:902:bd06:b0:1cc:3544:ea41 with SMTP id p6-20020a170902bd0600b001cc3544ea41mr5401541pls.46.1700755060262; Thu, 23 Nov 2023 07:57:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700755060; cv=none; d=google.com; s=arc-20160816; b=WIrWGdtVpqSwMpUaIlOsCbFGtebxC3ZeSIPGmhzvzznZOf99FFQDApEU6r9VNSWFdW k3+b+9cTCNSbCvCVocefwxEA5LJVqN/SR9R9ZPz/777nytP9RDwFOEnCHQJfvxnQYB86 AcRocbJ8piMOnO7Xq/R9DYBHclDQxoVZnCrrqsZeJLx4FSDyxomFzKhSwoJ6hG3v5uO5 F0Xl+AUnUqJQkKPcCGHP9w6xMi328IqV1hb9kDQc/fRCsr5/N+/LUXezDitajKiI7RPl Ge6wE5NDqEBwtCjiOrbdMI7Q41d/3TH6cUXUGF6DcdTD5ygApw3nE8ncJbgnBpiZ2wr9 If3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:date:references:organization:in-reply-to:subject:cc:to :from:dkim-signature:message-id; bh=AF/KeTYKhpfCXHeZPKV/bfK4ZedFWe4v+4JbDSSxA/I=; fh=MQB+gAWBxtPA6G2ZxYOydaYbvs4w6GyRfUZP0AgLhfU=; b=qWU3XSX64Fd9THvkleI6HvTkrvNOdBm/ZVysOWN2GRX+rnclv/knJlP54HvapObdhk u2BxBnGC4pbhZsq267FrBbnbBc5H/QxprBt2/SR1JO3q53XGfeK7I5H/lBwteweUtjiA Uw8k3K3f92bajFunB1nxCL6ZV3oItmsKgDrxnwo82b598Ji5ev/SZtK7krV4CRjs1h7+ v1jLgRgWsp6hnIINflBSyb4qChY2e3X7O03zb7SV7GB9LW0BMbaoAuF+t29kf+6RehlF 1AqUXVzAbVgJ59fnCswzpMum0brICt4Dagxa/BHKhG7uxmrbkpakvRu6bxGBeMJxSO2G +9mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@krisman.be header.s=gm1 header.b=XuFA093o; spf=pass (google.com: domain of linux-ext4+bounces-127-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-ext4+bounces-127-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j2-20020a170902da8200b001cf579f758asi1390776plx.437.2023.11.23.07.57.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 07:57:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-127-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@krisman.be header.s=gm1 header.b=XuFA093o; spf=pass (google.com: domain of linux-ext4+bounces-127-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-ext4+bounces-127-linux.lists.archive=gmail.com@vger.kernel.org" Message-ID: <655f7674.170a0220.7824e.1354SMTPIN_ADDED_BROKEN@mx.google.com> X-Google-Original-Message-ID: <87o7fkihst.fsf@> 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9177B281B15 for ; Thu, 23 Nov 2023 15:57:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 290423E46D; Thu, 23 Nov 2023 15:57:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=krisman.be header.i=@krisman.be header.b="XuFA093o" X-Original-To: linux-ext4@vger.kernel.org Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43F0010C4; Thu, 23 Nov 2023 07:57:26 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id CB541FF80E; Thu, 23 Nov 2023 15:57:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=krisman.be; s=gm1; t=1700755045; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=AF/KeTYKhpfCXHeZPKV/bfK4ZedFWe4v+4JbDSSxA/I=; b=XuFA093obwvK280z2xdg/19K6D/WCU59rHBphQqXJKjTAerzfphmIVx2tgwSaX1foGUnUm IMBNRrJmqIWb/SHxkiiFDzdUI2OrpBu7wqbrFYcJHVDO4QE2+VNyKDH1H9BvGP92WknY52 QcZnKu7liRTfyqh602spjR3aTmutaA88Wy1dzP8pe8B1GTgqXqN3Cbc8K6jZcOW9aQ0Lsk vZ/IXL2cVYJ4IiB3pdRoQLySmvbb2pyqXG24xOMNRQigPoLJk4lcgtTTRpF2julehI8Epv CkezQN76OWICUNRDvmrG3fWh0/ZWpOgMHPlX93cSWBdem9Nq9Fsetqxm88LI2Q== From: Gabriel Krisman Bertazi To: Linus Torvalds Cc: Al Viro , Christian Brauner , tytso@mit.edu, linux-f2fs-devel@lists.sourceforge.net, ebiggers@kernel.org, linux-fsdevel@vger.kernel.org, jaegeuk@kernel.org, linux-ext4@vger.kernel.org Subject: Re: [f2fs-dev] [PATCH v6 0/9] Support negative dentries on case-insensitive ext4 and f2fs In-Reply-To: (Linus Torvalds's message of "Wed, 22 Nov 2023 16:18:56 -0800") Organization: SUSE References: <20230816050803.15660-1-krisman@suse.de> <20231025-selektiert-leibarzt-5d0070d85d93@brauner> <655a9634.630a0220.d50d7.5063SMTPIN_ADDED_BROKEN@mx.google.com> <20231120-nihilismus-verehren-f2b932b799e0@brauner> <20231121022734.GC38156@ZenIV> <20231122211901.GJ38156@ZenIV> Date: Thu, 23 Nov 2023 10:57:22 -0500 User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: gabriel@krisman.be Linus Torvalds writes: > Side note: Gabriel, as things are now, instead of that > > if (!d_is_casefolded_name(dentry)) > return 0; > > in generic_ci_d_revalidate(), I would suggest that any time a > directory is turned into a case-folded one, you'd just walk all the > dentries for that directory and invalidate negative ones at that > point. Or was there some reason I missed that made it a good idea to > do it at run-time after-the-fact? > The problem I found with that approach, which I originally tried, was preventing concurrent lookups from racing with the invalidation and creating more 'case-sensitive' negative dentries. Did I miss a way to synchronize with concurrent lookups of the children of the dentry? We can trivially ensure the dentry doesn't have positive children by holding the parent lock, but that doesn't protect from concurrent lookups creating negative dentries, as far as I understand. -- Gabriel Krisman Bertazi