Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1667155rwl; Wed, 29 Mar 2023 23:05:43 -0700 (PDT) X-Google-Smtp-Source: AKy350bRKGYhzgUA1OvsK7s/47w8pgvernnm19hbmJlCsrB9ofGW58EuLqPsJ/mDwGWJOCeVp300 X-Received: by 2002:a05:6402:40c7:b0:501:ea97:519c with SMTP id z7-20020a05640240c700b00501ea97519cmr1304938edb.4.1680156343522; Wed, 29 Mar 2023 23:05:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680156343; cv=none; d=google.com; s=arc-20160816; b=MdPxc3SaDdpXR5R4SPdGz6m/YSzN8OmEh92nYJoB3cGPdAkLJvQI/awMxozU8v0hbX zMfEqvPZWK0ig7tvIN38CwBi/6eDWz9qHwRIreJwk2/TKwQiNYxEVyoygciY/1ECHcsd KPbKtnchoaIAo5HrFeeExNSWeAlOLZW6v/TQaZIJkn685HeSdf4m3z+uc8Y5EfKaAcEs oa6Vf+HKKRIiQ5+TTTal331+SNupSvuPs7GFV/+vRH9tcVuQaPvAdfIQ5gTCStYrcV+Q AUB+zBC6y+7OcI0ZXjosO6LcGJk+WaSi6vOQmBlK2Pb+Tir/I54xGfh45Uh3PuDsiFHs NBHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Q/LJFEu2WGaKcEH/ns/xlYsS+VMYLm7tE/d//fC1ScM=; b=oJ2jmMxifvYk3awpXx+8jZz7VWqsq87xMVh/dAW4qleGGdgIKgSmRmHjuahCGKfZcR 34Bv+D5WNtOKtDiaVEFLauVUSukYWx9o2ILNRPb8x8+zKkA2iv4H8Un39Q81QGfimdnI xcH4t6mQ0KfzUsdW/PUU+mtcGN4v//XGn46f/CSGXMIX+waVRLnHVKYaoFdolhhd+88v /NPoTk3NJ7TUKA23rCcd4C0VnoFSoEg6q7EcGUpGPEpc2CVhPAT0wYUTcYfEOu1HRxtK C7lFGSYM5NhPpQGmXySfDheItA45A4tm7BZ57xdlIjQOG42BX916dn5YzNYgG+buNrR8 D9xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=W9l+o6oG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j18-20020aa7c412000000b005021f2d34e0si16619803edq.351.2023.03.29.23.04.55; Wed, 29 Mar 2023 23:05:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=W9l+o6oG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230063AbjC3GCT (ORCPT + 99 others); Thu, 30 Mar 2023 02:02:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230037AbjC3GCN (ORCPT ); Thu, 30 Mar 2023 02:02:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D878365B8; Wed, 29 Mar 2023 23:02:06 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 2FD7161EE5; Thu, 30 Mar 2023 06:02:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B84DC433EF; Thu, 30 Mar 2023 06:02:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1680156125; bh=MatsWcKGv66X0GG9UiUtyibm2aW+Mc1KwnNPQlz05QQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W9l+o6oG9PPtB1m2nPF99hD029z22ZIl1k97974fnK2LhK28ABP9MgqgRFEBbSHXW bg3kZPLcSaKlEbCGwRuzlfN/YU/dgg+s5NCsB8Ux/SqzYpCC7E5MNAqhWuNZQ12nMU lo6pW2mavFr5uZ8cPG1png/oPf+T0pKaSlhTjCMk= Date: Thu, 30 Mar 2023 08:02:03 +0200 From: Greg Kroah-Hartman To: Jeff Layton Cc: Eric Van Hensbergen , Latchesar Ionkov , Dominique Martinet , Christian Schoenebeck , Joel Becker , Christoph Hellwig , Tejun Heo , Alexander Viro , Christian Brauner , Chuck Lever , v9fs-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH] fs: consolidate dt_type() helper definitions Message-ID: References: <20230329192425.194793-1-jlayton@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230329192425.194793-1-jlayton@kernel.org> X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 29, 2023 at 03:24:23PM -0400, Jeff Layton wrote: > There are 4 functions named dt_type() in the kernel. Consolidate the 3 > that are basically identical into one helper function in fs.h that > takes a umode_t argument. The v9fs helper is renamed to distinguish it > from the others. > > Cc: Chuck Lever > Signed-off-by: Jeff Layton > --- > fs/9p/vfs_dir.c | 6 +++--- > fs/configfs/dir.c | 8 +------- > fs/kernfs/dir.c | 8 +------- > fs/libfs.c | 9 ++------- > include/linux/fs.h | 6 ++++++ > 5 files changed, 13 insertions(+), 24 deletions(-) Acked-by: Greg Kroah-Hartman