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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3FCE2C6FD18 for ; Thu, 30 Mar 2023 00:03:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229910AbjC3ADs (ORCPT ); Wed, 29 Mar 2023 20:03:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229560AbjC3ADp (ORCPT ); Wed, 29 Mar 2023 20:03:45 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45AD82D48; Wed, 29 Mar 2023 17:03:45 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 921C268C7B; Thu, 30 Mar 2023 02:03:40 +0200 (CEST) Date: Thu, 30 Mar 2023 02:03:40 +0200 From: Christoph Hellwig To: Jeff Layton Cc: Eric Van Hensbergen , Latchesar Ionkov , Dominique Martinet , Christian Schoenebeck , Joel Becker , Christoph Hellwig , Alexander Viro , Christian Brauner , Greg Kroah-Hartman , Tejun Heo , Chuck Lever , Phillip Potter , v9fs-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v2] fs: consolidate dt_type() helper definitions Message-ID: <20230330000340.GA2189@lst.de> References: <20230330000157.297698-1-jlayton@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230330000157.297698-1-jlayton@kernel.org> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org > - v9fs_qid2ino(&st.qid), dt_type(&st)); > + v9fs_qid2ino(&st.qid), v9fs_dt_type(&st)); This adds an overly long line. Also renaming the v9fs dt_type seems like it should be a prep patch. > +/* Relationship between i_mode and the DT_xxx types */ This comment seems a bit terse. > +static inline unsigned char dt_type(umode_t mode) > +{ > + return ((mode) & S_IFMT) >> S_DT_SHIFT; No need for the inner braces.