From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A8EFC4338F for ; Mon, 26 Jul 2021 14:45:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3D7DB60F59 for ; Mon, 26 Jul 2021 14:45:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234570AbhGZOFR (ORCPT ); Mon, 26 Jul 2021 10:05:17 -0400 Received: from verein.lst.de ([213.95.11.211]:45519 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234451AbhGZOFR (ORCPT ); Mon, 26 Jul 2021 10:05:17 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 2249667373; Mon, 26 Jul 2021 16:45:41 +0200 (CEST) Date: Mon, 26 Jul 2021 16:45:40 +0200 From: Christoph Hellwig To: Matthew Wilcox Cc: Christian Brauner , Christoph Hellwig , Chris Mason , Josef Bacik , David Sterba , Al Viro , linux-btrfs@vger.kernel.org, Christian Brauner , Christoph Hellwig , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v3 01/21] namei: add mapping aware lookup helper Message-ID: <20210726144540.GA12779@lst.de> References: <20210726102816.612434-1-brauner@kernel.org> <20210726102816.612434-2-brauner@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Mon, Jul 26, 2021 at 03:41:05PM +0100, Matthew Wilcox wrote: > On Mon, Jul 26, 2021 at 12:27:56PM +0200, Christian Brauner wrote: > > +/** > > + * lookup_mapped_one_len - filesystem helper to lookup single pathname component > > Can we think about the name a bit? In the ur-times (2.3.99), we had > lookup_dentry(), which as far as I can tell walked an entire path. > That got augmented with lookup_one() which just walked a single path > entry. That was replaced with lookup_one_len() which added the 'len' > parameter. Now we have: > > struct dentry *try_lookup_one_len(const char *, struct dentry *, int); > struct dentry *lookup_one_len(const char *, struct dentry *, int); > struct dentry *lookup_one_len_unlocked(const char *, struct dentry *, int); > struct dentry *lookup_positive_unlocked(const char *, struct dentry *, int); > > I think the 'len' part of the name has done its job, and this new > helper should be 'lookup_one_mapped'. Heh. I'd drop the mapped as well as this should be the new normal going ahead.