Skip to content

Commit 1b53991

Browse files
gkurzMiklos Szeredi
authored andcommitted
fuse: Make fuse_fill_super_submount() static
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 <groug@kaod.org> Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
1 parent 29e0e4d commit 1b53991

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

fs/fuse/fuse_i.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,15 +1084,6 @@ void fuse_send_init(struct fuse_mount *fm);
10841084
*/
10851085
int fuse_fill_super_common(struct super_block *sb, struct fuse_fs_context *ctx);
10861086

1087-
/*
1088-
* Fill in superblock for submounts
1089-
* @sb: partially-initialized superblock to fill in
1090-
* @parent_fi: The fuse_inode of the parent filesystem where this submount is
1091-
* mounted
1092-
*/
1093-
int fuse_fill_super_submount(struct super_block *sb,
1094-
struct fuse_inode *parent_fi);
1095-
10961087
/*
10971088
* Remove the mount from the connection
10981089
*

fs/fuse/inode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,8 +1315,8 @@ static void fuse_sb_defaults(struct super_block *sb)
13151315
sb->s_xattr = fuse_no_acl_xattr_handlers;
13161316
}
13171317

1318-
int fuse_fill_super_submount(struct super_block *sb,
1319-
struct fuse_inode *parent_fi)
1318+
static int fuse_fill_super_submount(struct super_block *sb,
1319+
struct fuse_inode *parent_fi)
13201320
{
13211321
struct fuse_mount *fm = get_fuse_mount_super(sb);
13221322
struct super_block *parent_sb = parent_fi->inode.i_sb;

0 commit comments

Comments
 (0)