Skip to content

Commit

Permalink
vfs: make do_kern_mount() static
Browse files Browse the repository at this point in the history
the only user outside of fs/namespace.c has died

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Jan 4, 2012
1 parent a516616 commit 79e801a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions fs/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1929,7 +1929,7 @@ static struct vfsmount *fs_set_subtype(struct vfsmount *mnt, const char *fstype)
return ERR_PTR(err);
}

struct vfsmount *
static struct vfsmount *
do_kern_mount(const char *fstype, int flags, const char *name, void *data)
{
struct file_system_type *type = get_fs_type(fstype);
Expand All @@ -1943,7 +1943,6 @@ do_kern_mount(const char *fstype, int flags, const char *name, void *data)
put_filesystem(type);
return mnt;
}
EXPORT_SYMBOL_GPL(do_kern_mount);

/*
* add a mount into a namespace's mount tree
Expand Down
3 changes: 0 additions & 3 deletions include/linux/mount.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ extern void mnt_pin(struct vfsmount *mnt);
extern void mnt_unpin(struct vfsmount *mnt);
extern int __mnt_is_readonly(struct vfsmount *mnt);

extern struct vfsmount *do_kern_mount(const char *fstype, int flags,
const char *name, void *data);

struct file_system_type;
extern struct vfsmount *vfs_kern_mount(struct file_system_type *type,
int flags, const char *name,
Expand Down

0 comments on commit 79e801a

Please sign in to comment.