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 83328C761AF for ; Thu, 30 Mar 2023 10:50:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230023AbjC3KuL (ORCPT ); Thu, 30 Mar 2023 06:50:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230040AbjC3Ktt (ORCPT ); Thu, 30 Mar 2023 06:49:49 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53AFE7A9B; Thu, 30 Mar 2023 03:48:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E8F9DB82761; Thu, 30 Mar 2023 10:48:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16448C433EF; Thu, 30 Mar 2023 10:48:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1680173321; bh=8oWvMr4wiz2aNx6cQIoyYHUmn/pZJiT8/q+iAW7Gv14=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AeILlbSJQ4H9+z+a4cMaHn9n/hS7Mm30CJRM+ghJiQ4TqalpxEiKeOMHZ9EmY1phT TBmxXvCJuvfmu6VQ1rsQTbg6rvk7q2DcpzQitHTNcHC68dn7BdJErkw1TGuW5Zys6l QN18U/M3OYdzBrnhww2D0SNbcLzF1adOxIeD/GqA= Date: Thu, 30 Mar 2023 12:48:35 +0200 From: Greg Kroah-Hartman To: Jeff Layton Cc: Eric Van Hensbergen , Latchesar Ionkov , Dominique Martinet , Joel Becker , Christoph Hellwig , Tejun Heo , Alexander Viro , Christian Brauner , v9fs-developer@lists.sourceforge.net, Chuck Lever , Phillip Potter , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH] fs: consolidate duplicate dt_type helpers Message-ID: References: <20230330104144.75547-1-jlayton@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230330104144.75547-1-jlayton@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 30, 2023 at 06:41:43AM -0400, Jeff Layton wrote: > There are three copies of the same dt_type helper sprinkled around the > tree. Convert them to use the common fs_umode_to_dtype function instead, > which has the added advantage of properly returning DT_UNKNOWN when > given a mode that contains an unrecognized type. > > Cc: Chuck Lever > Cc: Phillip Potter > Suggested-by: Christian Brauner > Signed-off-by: Jeff Layton > --- > fs/configfs/dir.c | 9 ++------- > fs/kernfs/dir.c | 8 +------- > fs/libfs.c | 9 ++------- > 3 files changed, 5 insertions(+), 21 deletions(-) > > v2: consolidate S_DT helper as well > v3: switch existing dt_type helpers to use fs_umode_to_dtype > drop v9fs hunks since they're no longer needed You forgot the "v3" in the subject line :(