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.3 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 10EF9C433E0 for ; Thu, 18 Mar 2021 06:27:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AFE2664F33 for ; Thu, 18 Mar 2021 06:27:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229745AbhCRG1Z (ORCPT ); Thu, 18 Mar 2021 02:27:25 -0400 Received: from verein.lst.de ([213.95.11.211]:40233 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbhCRG1Z (ORCPT ); Thu, 18 Mar 2021 02:27:25 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 80E3268C65; Thu, 18 Mar 2021 07:27:23 +0100 (CET) Date: Thu, 18 Mar 2021 07:27:23 +0100 From: Christoph Hellwig To: Christian Brauner Cc: Christoph Hellwig , Al Viro , 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: <20210318062723.GB29726@lst.de> References: <20210315145419.2612537-1-christian.brauner@ubuntu.com> <20210315145419.2612537-3-christian.brauner@ubuntu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210315145419.2612537-3-christian.brauner@ubuntu.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org > -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.