Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4672048pxj; Tue, 25 May 2021 13:33:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyl+MMEs6D7uOl94DdQkTGwz8999f2VjOibLXfoM7iJYT0St0bFvRwrpE5lTuvx7OtuhNRS X-Received: by 2002:a92:c5b4:: with SMTP id r20mr8733734ilt.200.1621974788676; Tue, 25 May 2021 13:33:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621974788; cv=none; d=google.com; s=arc-20160816; b=VM0bL9Q/vLqjxZgHKxXI2rI/AvewBxKKMimD9ldw9L87O44tGqQeEoxwJgy6wewq5Z 14dWFi91ol46BvC9ZgvjAsRx/WuJKBx3z2scbPWq4gpM4F7qgKZ+nU7VwhyXWRjcHHAd cIMySvoV/h57YmkfAn7ScUh58WHobXYHDE5Z0P2eMJcAnzTmMCBWyOGI4kqOMNq5fcf4 gI4yxlS6LMexTLBnS0WLkEASj619T+A42O7SK2ChOHDXNsmfZVm0gq2luG5Idm0DmaC7 loRro0ygxWvGJ33cniaW2IpO9fIkL/CPP+3LjrS9TtFNfr7v3i99fZJmpXNkdxo6Z2Zv umog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=5DRyxh8B7x2khnxJ1s6u2YqIA9YoY/m1ZXCQkzefz+4=; b=O9+4b3/8p09HxN+FyVu9UJKmNi9K4Mt1M1RTKVn5dk4miT0pU1MOCfhAmRnqoGZ7kS f2h4vSCYi1oy18uKCHEGh/vh1LKqPogI8KwkqDc86DauFFEoSu36EqL87LV2mh5hlgL2 wksNsaI/JiReznyWVpohCaf9whjjPazbJucYokI6E6v6OgFNoieHmfqAiC4VKW2ojJpw 1b+W7VqzCqXW0hrvnrFYQUzwvL+WPhLAV0zDAy5kfIPv58/7Y9rQGuwoSJvsYg4Dr75Q aTdAVO0tDonb7qbSI0MM6wgazdHt3alIEkxAfUsamkeaiwRwvBIaFT9nmkIPrciT3ere FbYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si18071007ilk.127.2021.05.25.13.32.55; Tue, 25 May 2021 13:33:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230091AbhEYPEe convert rfc822-to-8bit (ORCPT + 99 others); Tue, 25 May 2021 11:04:34 -0400 Received: from us-smtp-delivery-44.mimecast.com ([205.139.111.44]:58442 "EHLO us-smtp-delivery-44.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232076AbhEYPEU (ORCPT ); Tue, 25 May 2021 11:04:20 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-290-C27MM2WqM9uHvpWp9PG4Lw-1; Tue, 25 May 2021 11:02:48 -0400 X-MC-Unique: C27MM2WqM9uHvpWp9PG4Lw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id F161C801AF2; Tue, 25 May 2021 15:02:47 +0000 (UTC) Received: from bahia.lan (ovpn-113-46.ams2.redhat.com [10.36.113.46]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9DD3D5D6AC; Tue, 25 May 2021 15:02:46 +0000 (UTC) From: Greg Kurz To: Miklos Szeredi Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Vivek Goyal , virtio-fs@redhat.com, Greg Kurz Subject: [PATCH 4/4] fuse: Make fuse_fill_super_submount() static Date: Tue, 25 May 2021 17:02:30 +0200 Message-Id: <20210525150230.157586-5-groug@kaod.org> In-Reply-To: <20210525150230.157586-1-groug@kaod.org> References: <20210525150230.157586-1-groug@kaod.org> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: kaod.org Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset=WINDOWS-1252 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This function used to be called from fuse_dentry_automount(). This code was moved to fuse_get_tree_submount() in the same file since then. It is unlikely there will ever be another user. No need to be extern in this case. Signed-off-by: Greg Kurz --- fs/fuse/fuse_i.h | 9 --------- fs/fuse/inode.c | 4 ++-- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index d7fcf59a6a0e..e2f5c8617e0d 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h @@ -1081,15 +1081,6 @@ void fuse_send_init(struct fuse_mount *fm); */ int fuse_fill_super_common(struct super_block *sb, struct fuse_fs_context *ctx); -/* - * Fill in superblock for submounts - * @sb: partially-initialized superblock to fill in - * @parent_fi: The fuse_inode of the parent filesystem where this submount is - * mounted - */ -int fuse_fill_super_submount(struct super_block *sb, - struct fuse_inode *parent_fi); - /* * Get the mountable root for the submount * @fsc: superblock configuration context diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 433ca2b13046..f591956c01b3 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c @@ -1275,8 +1275,8 @@ static void fuse_sb_defaults(struct super_block *sb) sb->s_xattr = fuse_no_acl_xattr_handlers; } -int fuse_fill_super_submount(struct super_block *sb, - struct fuse_inode *parent_fi) +static int fuse_fill_super_submount(struct super_block *sb, + struct fuse_inode *parent_fi) { struct fuse_mount *fm = get_fuse_mount_super(sb); struct super_block *parent_sb = parent_fi->inode.i_sb; -- 2.31.1