Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

David Howells and committed by
Al Viro
d911b458 32021982

+4 -5
+3 -3
fs/namespace.c
··· 3390 3390 free_mnt_ns(ns); 3391 3391 } 3392 3392 3393 - struct vfsmount *kern_mount_data(struct file_system_type *type, void *data) 3393 + struct vfsmount *kern_mount(struct file_system_type *type) 3394 3394 { 3395 3395 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); 3397 3397 if (!IS_ERR(mnt)) { 3398 3398 /* 3399 3399 * it is a longterm mount, don't release mnt until ··· 3403 3403 } 3404 3404 return mnt; 3405 3405 } 3406 - EXPORT_SYMBOL_GPL(kern_mount_data); 3406 + EXPORT_SYMBOL_GPL(kern_mount); 3407 3407 3408 3408 void kern_unmount(struct vfsmount *mnt) 3409 3409 {
+1 -2
include/linux/fs.h
··· 2280 2280 2281 2281 extern int register_filesystem(struct file_system_type *); 2282 2282 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 *); 2285 2284 extern void kern_unmount(struct vfsmount *mnt); 2286 2285 extern int may_umount_tree(struct vfsmount *); 2287 2286 extern int may_umount(struct vfsmount *);