Skip to content

Commit d911b45

Browse files
dhowellsAl Viro
authored andcommitted
vfs: Remove kern_mount_data()
The kern_mount_data() isn't used any more so remove it. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 3202198 commit d911b45

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

fs/namespace.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3390,10 +3390,10 @@ void put_mnt_ns(struct mnt_namespace *ns)
33903390
free_mnt_ns(ns);
33913391
}
33923392

3393-
struct vfsmount *kern_mount_data(struct file_system_type *type, void *data)
3393+
struct vfsmount *kern_mount(struct file_system_type *type)
33943394
{
33953395
struct vfsmount *mnt;
3396-
mnt = vfs_kern_mount(type, SB_KERNMOUNT, type->name, data);
3396+
mnt = vfs_kern_mount(type, SB_KERNMOUNT, type->name, NULL);
33973397
if (!IS_ERR(mnt)) {
33983398
/*
33993399
* 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)
34033403
}
34043404
return mnt;
34053405
}
3406-
EXPORT_SYMBOL_GPL(kern_mount_data);
3406+
EXPORT_SYMBOL_GPL(kern_mount);
34073407

34083408
void kern_unmount(struct vfsmount *mnt)
34093409
{

include/linux/fs.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2280,8 +2280,7 @@ mount_pseudo(struct file_system_type *fs_type, char *name,
22802280

22812281
extern int register_filesystem(struct file_system_type *);
22822282
extern int unregister_filesystem(struct file_system_type *);
2283-
extern struct vfsmount *kern_mount_data(struct file_system_type *, void *data);
2284-
#define kern_mount(type) kern_mount_data(type, NULL)
2283+
extern struct vfsmount *kern_mount(struct file_system_type *);
22852284
extern void kern_unmount(struct vfsmount *mnt);
22862285
extern int may_umount_tree(struct vfsmount *);
22872286
extern int may_umount(struct vfsmount *);

0 commit comments

Comments
 (0)