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=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 27EB5C433DB for ; Thu, 18 Mar 2021 06:31:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CBB8364F21 for ; Thu, 18 Mar 2021 06:31:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229721AbhCRGbN (ORCPT ); Thu, 18 Mar 2021 02:31:13 -0400 Received: from zeniv-ca.linux.org.uk ([142.44.231.140]:33028 "EHLO zeniv-ca.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229704AbhCRGaz (ORCPT ); Thu, 18 Mar 2021 02:30:55 -0400 Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94 #2 (Red Hat Linux)) id 1lMmBG-0073fw-36; Thu, 18 Mar 2021 06:30:50 +0000 Date: Thu, 18 Mar 2021 06:30:50 +0000 From: Al Viro To: Christoph Hellwig Cc: Christian Brauner , Vivek Goyal , "Darrick J . Wong" , linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org Subject: Re: [PATCH 2/3] fs: improve naming for fsid helpers Message-ID: References: <20210315145419.2612537-1-christian.brauner@ubuntu.com> <20210315145419.2612537-3-christian.brauner@ubuntu.com> <20210318062723.GB29726@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210318062723.GB29726@lst.de> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Thu, Mar 18, 2021 at 07:27:23AM +0100, Christoph Hellwig wrote: > > -static inline kuid_t fsuid_into_mnt(struct user_namespace *mnt_userns) > > +static inline kuid_t idmapped_fsuid(struct user_namespace *mnt_userns) > > { > > return kuid_from_mnt(mnt_userns, current_fsuid()); > > } > > > > -static inline kgid_t fsgid_into_mnt(struct user_namespace *mnt_userns) > > +static inline kgid_t idmapped_fsgid(struct user_namespace *mnt_userns) > > { > > return kgid_from_mnt(mnt_userns, current_fsgid()); > > } > > I'm not sure the naming is an improvement. I always think of > identity mapped when reading it, which couldn't be further from what > it does.. But either way comments describing what these helpers do > would be very useful. s/idmapped/mapped/?