aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/namespace.c3
-rw-r--r--include/linux/mount.h3
2 files changed, 1 insertions, 5 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index ed21ac4f7c69..7a8f949cec1b 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -1929,7 +1929,7 @@ static struct vfsmount *fs_set_subtype(struct vfsmount *mnt, const char *fstype)
1929 return ERR_PTR(err); 1929 return ERR_PTR(err);
1930} 1930}
1931 1931
1932struct vfsmount * 1932static struct vfsmount *
1933do_kern_mount(const char *fstype, int flags, const char *name, void *data) 1933do_kern_mount(const char *fstype, int flags, const char *name, void *data)
1934{ 1934{
1935 struct file_system_type *type = get_fs_type(fstype); 1935 struct file_system_type *type = get_fs_type(fstype);
@@ -1943,7 +1943,6 @@ do_kern_mount(const char *fstype, int flags, const char *name, void *data)
1943 put_filesystem(type); 1943 put_filesystem(type);
1944 return mnt; 1944 return mnt;
1945} 1945}
1946EXPORT_SYMBOL_GPL(do_kern_mount);
1947 1946
1948/* 1947/*
1949 * add a mount into a namespace's mount tree 1948 * add a mount into a namespace's mount tree
diff --git a/include/linux/mount.h b/include/linux/mount.h
index 33fe53d78110..65c1bb013836 100644
--- a/include/linux/mount.h
+++ b/include/linux/mount.h
@@ -100,9 +100,6 @@ extern void mnt_pin(struct vfsmount *mnt);
100extern void mnt_unpin(struct vfsmount *mnt); 100extern void mnt_unpin(struct vfsmount *mnt);
101extern int __mnt_is_readonly(struct vfsmount *mnt); 101extern int __mnt_is_readonly(struct vfsmount *mnt);
102 102
103extern struct vfsmount *do_kern_mount(const char *fstype, int flags,
104 const char *name, void *data);
105
106struct file_system_type; 103struct file_system_type;
107extern struct vfsmount *vfs_kern_mount(struct file_system_type *type, 104extern struct vfsmount *vfs_kern_mount(struct file_system_type *type,
108 int flags, const char *name, 105 int flags, const char *name,