lkml.org 
[lkml]   [2017]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 14/14] VFS: Remove kern_mount_data() [ver #6]
    From
    Date
    The kern_mount_data() isn't used any more so remove it.

    Signed-off-by: David Howells <dhowells@redhat.com>
    ---

    fs/namespace.c | 6 ------
    include/linux/fs.h | 1 -
    2 files changed, 7 deletions(-)

    diff --git a/fs/namespace.c b/fs/namespace.c
    index 8676658b6b2c..091a63a63fa5 100644
    --- a/fs/namespace.c
    +++ b/fs/namespace.c
    @@ -3181,12 +3181,6 @@ struct vfsmount *kern_mount(struct file_system_type *type)
    }
    EXPORT_SYMBOL_GPL(kern_mount);

    -struct vfsmount *kern_mount_data(struct file_system_type *type, void *data)
    -{
    - return vfs_kern_mount(type, SB_KERNMOUNT, type->name, data);
    -}
    -EXPORT_SYMBOL_GPL(kern_mount_data);
    -
    /*
    * Mount a new, prepared superblock (specified by fs_fd) on the location
    * specified by dfd and dir_name. dfd can be AT_FDCWD, a dir fd or a container
    diff --git a/include/linux/fs.h b/include/linux/fs.h
    index f391263c62a1..b1433076b8e2 100644
    --- a/include/linux/fs.h
    +++ b/include/linux/fs.h
    @@ -2168,7 +2168,6 @@ mount_pseudo(struct file_system_type *fs_type, char *name,
    extern int register_filesystem(struct file_system_type *);
    extern int unregister_filesystem(struct file_system_type *);
    extern struct vfsmount *kern_mount(struct file_system_type *);
    -extern struct vfsmount *kern_mount_data(struct file_system_type *, void *);
    extern void kern_unmount(struct vfsmount *mnt);
    extern int may_umount_tree(struct vfsmount *);
    extern int may_umount(struct vfsmount *);
    \
     
     \ /
      Last update: 2017-10-06 17:52    [W:3.453 / U:0.192 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site