Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp816519pxj; Thu, 20 May 2021 23:10:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygetIv3ar/LYcsYt33kKn2IL+2osJtuW0SacKrcm9qoasX03SLJ/1403BwhSc289XimmnU X-Received: by 2002:a17:906:a06:: with SMTP id w6mr8695318ejf.32.1621577432515; Thu, 20 May 2021 23:10:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621577432; cv=none; d=google.com; s=arc-20160816; b=Ms48EVOwQc4S8piAteWtKL3QToJn9ySVYGRJ5Fyr210Np0BS17PHDl9/7YZQDt7k/b sBaW9RMaJF2bQqzHReOQEeEYnkwxkY1X6AZ9kg/pEPm/G8jroN5E5+4iw6LPBdQFFL1w Aymg2+bGqRCXUQWZ/dXrkD0IH91C/8w9XBGh4JZvF8C/PiopbQ2OuofBMSO+LrP6TKDJ 0g7tgugOuMRd8pq15HLxfbUniUXVe5rGo+I8yFSLA3rdUnweXFYl9pYNSgAna6oNxiDq M45On07DQb4wAPOH5XO48vS2ya/LH8YGFaDta03DYqMFSpdzwQjYyFYHGvfM8JansNav KmuQ== 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=3fm8ZbBgeoQR+tSTEfwLX1F9XLs67T4lL4MYBi0zrRE=; b=uRa+8ms3r/gzWg7Psqs4dF1PI58aJoPzsWJQJS8qv7/lZvPDNODEacv8AXeo8REiZn pSgtQVR1A+Qf2fLla/f09FpW6JrWgLs+SCMkpmD4BXySCXU2xFClf4YbPrFZBVjLNBf2 gLU0WVVsiqspydAVyIf8apS6xZj80B/UsiwHKuFfUCPHLIJwBORBuC+SA+8GfG+pS6e8 F6xB+L9Gmt03YcZEKqBcjLBUOS9Nz9zClw730Ir3qgt3kRLTe5YS9wGYpFL67d5nmgV4 pFu9DqmOrig3IHyEpriG3aFo+yBXv4PHV+Ox3rM3BVLe2xTBvHnnohB9XLRx4w5ir+mm rKIQ== 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 cz28si4375617edb.168.2021.05.20.23.10.09; Thu, 20 May 2021 23:10:32 -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 S238793AbhETPso convert rfc822-to-8bit (ORCPT + 99 others); Thu, 20 May 2021 11:48:44 -0400 Received: from us-smtp-delivery-44.mimecast.com ([205.139.111.44]:44419 "EHLO us-smtp-delivery-44.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237736AbhETPsi (ORCPT ); Thu, 20 May 2021 11:48:38 -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-240-OUwm_plVM2qSqXcyk3-WTg-1; Thu, 20 May 2021 11:47:12 -0400 X-MC-Unique: OUwm_plVM2qSqXcyk3-WTg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A77D3805F03; Thu, 20 May 2021 15:47:11 +0000 (UTC) Received: from bahia.redhat.com (ovpn-112-99.ams2.redhat.com [10.36.112.99]) by smtp.corp.redhat.com (Postfix) with ESMTP id D969A10013C1; Thu, 20 May 2021 15:47:09 +0000 (UTC) From: Greg Kurz To: Miklos Szeredi Cc: virtualization@lists.linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, virtio-fs@redhat.com, Stefan Hajnoczi , Max Reitz , Vivek Goyal , Greg Kurz Subject: [PATCH v4 3/5] fuse: Make fuse_fill_super_submount() static Date: Thu, 20 May 2021 17:46:52 +0200 Message-Id: <20210520154654.1791183-4-groug@kaod.org> In-Reply-To: <20210520154654.1791183-1-groug@kaod.org> References: <20210520154654.1791183-1-groug@kaod.org> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=groug@kaod.org 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 74e5205f203c..123b53d1c3c6 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.26.3