Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2827888pxb; Sun, 3 Oct 2021 06:52:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjdgeEMq7Yjb01aWIB0QGKLMcVJhxI/9zxFyXSMM8cO4Xf3vF63WAK/WcvLxzpR59VhS1W X-Received: by 2002:a63:7405:: with SMTP id p5mr6736281pgc.426.1633269175046; Sun, 03 Oct 2021 06:52:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633269175; cv=none; d=google.com; s=arc-20160816; b=jCXlSRgOLnSIWLr9jNc0NjwvnuDLDtGPnRomeSLXvipcfk6SBHp183az+YgiSWFR6v 6/FWaqr32dGd0Nwt4k/6VGrVClr+5c1HVNWLamm2wZgTorAyOFmWWMywW7tUHyh/f1OF urPp6BkQhj//fAms3f4yGfqCu3nHejG4d84a3CONtTN0srW4jHfQyiLPVdSbPmAe9Z6O TtzzYW67i/jmblWE8I3Md0j4ry/q1BjAfCKkrUsm2zEUno4f5tAClZstRu38szFcLO5i VF01Fs/Jn17/0dXypll4WR1KQznVA7LuqywzePh79kLgUp3UQzW5xQhxd/oniy49NFSA k/FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=w6l5ZImf8ZlSOiWnR+obEGM3g9/A2U8xdGzcY2vHRdI=; b=vXvC+Hol2c5lRjRNvsNXKfqeFaLWnGitqx5e81a5o5jYRQ6vFJzHuI6LBz5kMOfyYI PqEQ3+sRP8Tmdc10ed5+/RWLixo3yzSoeYVAZhcXKuxrjtv3ZG5ppq5a9mLYJP5pkcfi w02jO9pEebrTLM3pF+sEn5qLBY++Zgea/uZma/Cgedl3vDOWZ0sr77npADmXDjK5xvbP 0hyjzn4aANZ8uX92L534XClBC0vWjCrQOmyS6wW5kKqo5bh9nJAsO5h3DFfD50RVjAVH Q9guks9dZiQta6aFikO8JJqsT5sF2I4yhgwgzyY65X1ld68B8Y6iSNnCCfrYDNsRaPL/ Q89A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m125si14314405pfb.54.2021.10.03.06.52.41; Sun, 03 Oct 2021 06:52:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230207AbhJCNyU (ORCPT + 99 others); Sun, 3 Oct 2021 09:54:20 -0400 Received: from zeniv-ca.linux.org.uk ([142.44.231.140]:51004 "EHLO zeniv-ca.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230050AbhJCNyU (ORCPT ); Sun, 3 Oct 2021 09:54:20 -0400 Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mX1um-009e19-Ft; Sun, 03 Oct 2021 13:52:28 +0000 Date: Sun, 3 Oct 2021 13:52:28 +0000 From: Al Viro To: Gabriel Krisman Bertazi Cc: Shreeya Patel , tytso@mit.edu, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: Re: [PATCH 1/2] fs: dcache: Handle case-exact lookup in d_alloc_parallel Message-ID: References: <0b8fd2677b797663bfcb97f6aa108193fedf9767.1632909358.git.shreeya.patel@collabora.com> <87a6js61aj.fsf@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87a6js61aj.fsf@collabora.com> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Fri, Oct 01, 2021 at 02:35:32PM -0400, Gabriel Krisman Bertazi wrote: > I don't like the idea of having a flavor of a dentry comparison function > that doesn't invoke d_compare. In particular because d_compare might be > used for all sorts of things, and this fix is really specific to the > case-insensitive case. > > Would it be possible to fold this change into generic_ci_d_compare? If > we could flag the dentry as part of a parallel lookup under the relevant > condition, generic_ci_d_compare could simply return immediately in > such case. Not really - if anything, that's a property of d_alloc_parallel() call done by d_add_ci(), not that of any of the dentries involved...