Commit d911b458 authored by David Howells's avatar David Howells Committed by Al Viro

vfs: Remove kern_mount_data()

The kern_mount_data() isn't used any more so remove it.
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 32021982
...@@ -3390,10 +3390,10 @@ void put_mnt_ns(struct mnt_namespace *ns) ...@@ -3390,10 +3390,10 @@ void put_mnt_ns(struct mnt_namespace *ns)
free_mnt_ns(ns); free_mnt_ns(ns);
} }
struct vfsmount *kern_mount_data(struct file_system_type *type, void *data) struct vfsmount *kern_mount(struct file_system_type *type)
{ {
struct vfsmount *mnt; struct vfsmount *mnt;
mnt = vfs_kern_mount(type, SB_KERNMOUNT, type->name, data); mnt = vfs_kern_mount(type, SB_KERNMOUNT, type->name, NULL);
if (!IS_ERR(mnt)) { if (!IS_ERR(mnt)) {
/* /*
* it is a longterm mount, don't release mnt until * it is a longterm mount, don't release mnt until
...@@ -3403,7 +3403,7 @@ struct vfsmount *kern_mount_data(struct file_system_type *type, void *data) ...@@ -3403,7 +3403,7 @@ struct vfsmount *kern_mount_data(struct file_system_type *type, void *data)
} }
return mnt; return mnt;
} }
EXPORT_SYMBOL_GPL(kern_mount_data); EXPORT_SYMBOL_GPL(kern_mount);
void kern_unmount(struct vfsmount *mnt) void kern_unmount(struct vfsmount *mnt)
{ {
......
...@@ -2280,8 +2280,7 @@ mount_pseudo(struct file_system_type *fs_type, char *name, ...@@ -2280,8 +2280,7 @@ mount_pseudo(struct file_system_type *fs_type, char *name,
extern int register_filesystem(struct file_system_type *); extern int register_filesystem(struct file_system_type *);
extern int unregister_filesystem(struct file_system_type *); extern int unregister_filesystem(struct file_system_type *);
extern struct vfsmount *kern_mount_data(struct file_system_type *, void *data); extern struct vfsmount *kern_mount(struct file_system_type *);
#define kern_mount(type) kern_mount_data(type, NULL)
extern void kern_unmount(struct vfsmount *mnt); extern void kern_unmount(struct vfsmount *mnt);
extern int may_umount_tree(struct vfsmount *); extern int may_umount_tree(struct vfsmount *);
extern int may_umount(struct vfsmount *); extern int may_umount(struct vfsmount *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment