From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx3-rdu2.redhat.com ([66.187.233.73]:40368 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388999AbeG0S4w (ORCPT ); Fri, 27 Jul 2018 14:56:52 -0400 Subject: [PATCH 23/38] vfs: Remove kern_mount_data() [ver #10] From: David Howells To: viro@zeniv.linux.org.uk Cc: torvalds@linux-foundation.org, dhowells@redhat.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 27 Jul 2018 18:33:57 +0100 Message-ID: <153271283754.9458.6459415286106929492.stgit@warthog.procyon.org.uk> In-Reply-To: <153271267980.9458.7640156373438016898.stgit@warthog.procyon.org.uk> References: <153271267980.9458.7640156373438016898.stgit@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-fsdevel-owner@vger.kernel.org List-ID: The kern_mount_data() isn't used any more so remove it. Signed-off-by: David Howells --- fs/namespace.c | 7 ------- include/linux/fs.h | 1 - 2 files changed, 8 deletions(-) diff --git a/fs/namespace.c b/fs/namespace.c index 51a6799c3f61..ea07066a2731 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -3347,13 +3347,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, size_t data_size) -{ - return vfs_kern_mount(type, SB_KERNMOUNT, type->name, data, data_size); -} -EXPORT_SYMBOL_GPL(kern_mount_data); - /* * Move a mount from one place to another. * In combination with open_tree(OPEN_TREE_CLONE [| AT_RECURSIVE]) it can be diff --git a/include/linux/fs.h b/include/linux/fs.h index 00a24f4b2f0b..3e661d033163 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -2214,7 +2214,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 *, size_t); extern void kern_unmount(struct vfsmount *mnt); extern int may_umount_tree(struct vfsmount *); extern int may_umount(struct vfsmount *);