Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2042218rwp; Thu, 13 Jul 2023 23:00:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlEV4yFjUomk8pEHzzzQbs39OC6C+CRiR6zGBgIMiB7z+BCnGWfGFDhBlIuKd4CZNl4P4KFc X-Received: by 2002:aa7:c386:0:b0:51e:309:2e11 with SMTP id k6-20020aa7c386000000b0051e03092e11mr3440224edq.36.1689314453110; Thu, 13 Jul 2023 23:00:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689314453; cv=none; d=google.com; s=arc-20160816; b=uZpt4ht1e0YvB40ammIkWrBET+k8QN5q813DlOa4Du4cbBUMQ1CnZGQmXit9IB6lpi FnM15ZrdR8A7X7P7kCgzPjUBhcTfIkSQ44eId4LpVOUdSB1Milxc03wslgHe+Dr+BZ5k 9boi9hP1MqmALNaz9lAt05BhaTCiazTjgSgLmb8tSvUP/JMzY3tChb/umvgdIYuMWrUB kazLLh5PN4CDx4m9LISqeJtGccWhWODuMVkOPKeLvHfffS1AW+MEJskoIQXio3lehCm8 FaBW6Y73YmQnl25+hnDtcqut8RDAD5Kipe0CGs3ui//uemWHnWEFDu/X/0WPlHSLKJif RZMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ubKHXPE3lhZ6gaGYN7NJAXMwYds7BVJ9xEUFMJjcpk0=; fh=O9HCw4Bmf2qwjO8ss3GrzvYYvoiF4ciMiD4gTT9PRio=; b=Yd96/RlggTyycOPZKW/b6cpfDRPuenWwIwv1YSZ80WTCMLvuq9TsKjd5xYty3ieHMG J+CCPwBcxkGZBibW2D1iZeoXtmOY5wGUGSvnN5m1Pkf/VRabFjY6lPTIZvTpwPKkAoLO TVHb/K7MSA0QjfyV9eD1LpgjK8Yox+NOlallzZfouVoHgvHgwocYX5AJnTzgedCAe+49 akEe1Gg8gn7Gw5m265/pdAAyst2FSoYKeOMFsVdyen6LdlipHidzI0rfoBZOMCvK9hHy oMOt6Nqq7JNyLEXPCbZTsRvT1t7W+zOhEG/SKA2NAudVn/wLCcLHX4sJmjl9SZZMg9mJ UEug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lNSPH9Qf; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g7-20020aa7c587000000b0051df3ae38b4si670467edq.573.2023.07.13.23.00.00; Thu, 13 Jul 2023 23:00:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lNSPH9Qf; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234300AbjGNFz0 (ORCPT + 99 others); Fri, 14 Jul 2023 01:55:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231972AbjGNFzV (ORCPT ); Fri, 14 Jul 2023 01:55:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81C1A2123; Thu, 13 Jul 2023 22:55:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 13E1D61C2A; Fri, 14 Jul 2023 05:55:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2EC76C433C7; Fri, 14 Jul 2023 05:55:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689314119; bh=IXG6OKn01yJj0TE1xVyNQVVP2cgIJ84xsyC/CW0XIaU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lNSPH9QfHOdM9FO2SngD10EMxHIkKS12TAD6XmT2erE4WSzUHeNZqG1g7ORyq9Ptc Wc7RRfwHvx/wbR5WolW+1AXcbpMN09Y3E/WXLvIdB34yAaMhs9YktbrqvSGTCKTKKl 6XZuOTEeIQsVog29Cz2aPr0e50H4Qxk7DlNn/9O6OZdN2w9+USiaxuK1FjyuX7Mowp VOJpP2p+PuN9wgFUJhrU4aTJbs5cFsg0224yfp8ayO73ubM67xA4jKtUDGoFT824fK Dq6P8F3ZmDt6Rwle9l0TAQQZE7eH5nZHHj29VmmGWjvMa7nTKF8WD/A8tvxWoW927/ zeswo3tOfNpuQ== Date: Thu, 13 Jul 2023 22:55:17 -0700 From: Eric Biggers To: Gabriel Krisman Bertazi Cc: viro@zeniv.linux.org.uk, brauner@kernel.org, tytso@mit.edu, jaegeuk@kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Subject: Re: [PATCH v2 2/7] fs: Add DCACHE_CASEFOLD_LOOKUP flag Message-ID: <20230714055517.GG913@sol.localdomain> References: <20230422000310.1802-1-krisman@suse.de> <20230422000310.1802-3-krisman@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230422000310.1802-3-krisman@suse.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Fri, Apr 21, 2023 at 08:03:05PM -0400, Gabriel Krisman Bertazi wrote: > @@ -209,6 +209,7 @@ struct dentry_operations { > #define DCACHE_FALLTHRU 0x01000000 /* Fall through to lower layer */ > #define DCACHE_NOKEY_NAME 0x02000000 /* Encrypted name encoded without key */ > #define DCACHE_OP_REAL 0x04000000 > +#define DCACHE_CASEFOLD_LOOKUP 0x08000000 /* Dentry comes from a casefold directory */ > > #define DCACHE_PAR_LOOKUP 0x10000000 /* being looked up (with parent locked shared) */ > #define DCACHE_DENTRY_CURSOR 0x20000000 The first time I read DCACHE_CASEFOLD_LOOKUP, I got the wrong impression, since it uses _LOOKUP in a different way from DCACHE_PAR_LOOKUP. DCACHE_PAR_LOOKUP uses it to mean "dentry is currently being looked up", while DCACHE_CASEFOLD_LOOKUP uses it to mean "dentry *was* looked up". Maybe DCACHE_CASEFOLDED_NAME would be more logical? That would follow DCACHE_NOKEY_NAME. (Also CASEFOLD => CASEFOLDED would be logical, I think.) - Eric