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 4F715C761A6 for ; Thu, 30 Mar 2023 12:41:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231349AbjC3Ml1 (ORCPT ); Thu, 30 Mar 2023 08:41:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229682AbjC3Ml0 (ORCPT ); Thu, 30 Mar 2023 08:41:26 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08E3376A6; Thu, 30 Mar 2023 05:41:25 -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 926BEB828B7; Thu, 30 Mar 2023 12:41:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AECADC433EF; Thu, 30 Mar 2023 12:41:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680180082; bh=H2CWthzCkNL5YlH7+JHisFXzsRbNGrgUtcahqrtI+Tw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Tn5drJVUC4auIWA58yPEiD6skHL4n/IIbN1Any560WJu21hwunt7Pe+Hjbsj7DnOy da4P6noaFjdmALwI7XORtevgAKw3G0vBrFvQs7npDl99H9kG8Ur9Umu6uEisE431RZ s+/5fg8+hyGipnypjo7WEAA4g0tiTo9p5O0iScMklpKRzrDKq3pTsgLVsi1RuUqarp UjtPJq3XjKQe7Y71uUY7OFIDeCXbXfmnV6qNuqz9vjQc79FWdBcNstL9IYT9PN+kG7 48xRhKdrtiKvJDyXo/VLL3ejj/fp3LleT/AyOnrjmoQ7MNKK6LU/klIYXM50YcUA/2 nv+FmNSAxgTAQ== Date: Thu, 30 Mar 2023 14:41:14 +0200 From: Christian Brauner To: Jeff Layton Cc: Eric Van Hensbergen , Latchesar Ionkov , Dominique Martinet , Joel Becker , Christoph Hellwig , Greg Kroah-Hartman , Tejun Heo , Alexander Viro , v9fs-developer@lists.sourceforge.net, Chuck Lever , Phillip Potter , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v3] fs: consolidate duplicate dt_type helpers Message-ID: <20230330-overeager-balcony-36975926d0a0@brauner> References: <20230330104144.75547-1-jlayton@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230330104144.75547-1-jlayton@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@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 > --- Looks good to me, Reviewed-by: Christian Brauner