Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8541422rwi; Tue, 25 Oct 2022 07:57:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6z5X7o0bf90WXbCGYp6J5tIzKbR670uOCM5C8ZQzagYRH+X/4fXqZ0zeW1gdbNasF4Tbr/ X-Received: by 2002:a63:e64f:0:b0:43c:9db1:8096 with SMTP id p15-20020a63e64f000000b0043c9db18096mr31985957pgj.567.1666709827925; Tue, 25 Oct 2022 07:57:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666709827; cv=none; d=google.com; s=arc-20160816; b=jhls+KsU8qP8u99wM1t5FFRuo/KbyVBT7zwdg1kOis8RkN5ikJdPRRvKj0SKt/zb3I YsCTsieioZQkizZyCaAYQlb7jkzykaCaF5bOd8cua9EmgipNjHO/Ps8hArLptplwJcGP ve+p1Byerdt+LjR1T5rCIWbMmVSRS16YdRpddmS7cxDHOqIQt7JFkR/jpE3IVbzDX4a9 UKOzA2RAeschia/QNWrASfBKs6CVnUNL/w7/gU94i75IZC02L+XHBJAEfTt0zYfD/jot 7EP/B4zXOB0kHdNLjHMIqkncnOgYCaVWQqzQHj5MU4YlLPyG9cVhp2CO2yom8kG/6ANE U28w== 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=KllgkVV8laJ2xHMQhuc6kJpO7VnYiJK0bpwbhlBt3b0=; b=re+pfCoFqACzujX+IZ+ImmpLtoMewdqF6Sa/ePR+kZsZaCnMTzxcuIRVU7QkjMHLz/ rTHkvUtg1410zGfEIaIUCHpXXKVHr8A+B+v6pcmxJLvo4krgwCLlUAGDEN1r+5YLwxYu 6EGOaxsVgnevumYP5IiIhsLgYmtib+r3+PbghbDC8CNxZvF5+hW9++kf/7AwiM4p9Msa Zt0EiNUT9hGnFR596Tc80JUqDDY/dZwaFxoA4MjcByVABgGv4j/m404UdbrtxUlUaucM jJHQHl5I/irYUtWj+HVCtmPBmIBwrbAguoyL3spLH+4kkZfu/LK8lGfwja1SJ7Nfj6iq ZGWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="rd/jg1hO"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y3-20020aa79e03000000b00561741403adsi3197912pfq.182.2022.10.25.07.56.55; Tue, 25 Oct 2022 07:57:07 -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=@kernel.org header.s=k20201202 header.b="rd/jg1hO"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231877AbiJYOhJ (ORCPT + 99 others); Tue, 25 Oct 2022 10:37:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232591AbiJYOgQ (ORCPT ); Tue, 25 Oct 2022 10:36:16 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C0B3170B5F; Tue, 25 Oct 2022 07:36:14 -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 EFB40B81D53; Tue, 25 Oct 2022 14:36:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44033C433D6; Tue, 25 Oct 2022 14:36:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666708571; bh=L0xnnC6VqXOdL3SosPrum6FZh21guGBKfx7TXhf1718=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rd/jg1hOaGlFnyDN+QFJTJbNzPKD7jbtGwpWnXf2DwgjP6zXe5itYXEW+rR5/wQvp skoXlF+E8WgB69+du3MRe45/kVR3WyAiR1JST1tzQN2mVaMvSNPq4nX2jUD4Kp9n/Z mOIwemacY2Bg4dQnoOrA7I3x/K+utPzT6d48K096JBUOVEeMuy2166AEX/ebkdEaWu cMdz/t6FjYDkhz8Nc5vT0kCTM4N7v4BgHojOfvsEQwm7s9Ppi/PtZsKSfs3uHLLK6y nbrTKawgu7Azcd9lKoaJxiKrh7W0srRzpHMhO/sXWANUF4QZbZOvznGUf03/pVMpnT vnQBFMO1gb3Cg== Date: Tue, 25 Oct 2022 16:36:07 +0200 From: Christian Brauner To: Dawei Li Cc: viro@zeniv.linux.org.uk, neilb@suse.de, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] vfs: Make vfs_get_super() internal Message-ID: <20221025143607.frmf3qg7j4kwezll@wittgenstein> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Tue, Oct 25, 2022 at 10:24:01PM +0800, Dawei Li wrote: > For now there are no external callers of vfs_get_super(), > so just make it an internal API. > > base-commit: 3aca47127a646165965ff52803e2b269eed91afc > > Signed-off-by: Dawei Li > --- > fs/super.c | 3 +-- > include/linux/fs_context.h | 4 ---- > 2 files changed, 1 insertion(+), 6 deletions(-) > > diff --git a/fs/super.c b/fs/super.c > index 6a82660e1adb..cde412f900c7 100644 > --- a/fs/super.c > +++ b/fs/super.c > @@ -1136,7 +1136,7 @@ static int test_single_super(struct super_block *s, struct fs_context *fc) > * A permissions check is made by sget_fc() unless we're getting a superblock > * for a kernel-internal mount or a submount. > */ > -int vfs_get_super(struct fs_context *fc, > +static int vfs_get_super(struct fs_context *fc, > enum vfs_get_super_keying keying, > int (*fill_super)(struct super_block *sb, > struct fs_context *fc)) If you want to make it static that you should probably also make enum vfs_get_super_keying static by moving it into super.c. It's not used anywhere but for vfs_get_super() afaict.