Received: by 10.192.165.156 with SMTP id m28csp727914imm; Thu, 19 Apr 2018 06:39:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/mZ3L1GXu+fwzrTaf7yvxswpdCNDDxjh5ZbYsysje7XsYhHRaW0Cj+1ADOXGrQMsNekHQE X-Received: by 10.99.95.79 with SMTP id t76mr5215152pgb.108.1524145144843; Thu, 19 Apr 2018 06:39:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524145144; cv=none; d=google.com; s=arc-20160816; b=Wvb2WWc4f++6D6hM19BTpX9AG327EFaMEFA3f8Fs6BUisuf74/E27fwDxRxfPcDsZl +XO6hnDScmbVX9dkwetMGXEH9A5CYQ5ecyebscANlEMlW1oJdMyyZ9WNXDb8+y3Z2Zch roHqsv3zKDnDQYAy9QWM1v4QOgZQcESeFaMK5KHwl2Nzy0MVaKpjpmrXLdklbLnZ7xVJ D+T7pbtL0Zqr6/q7NIDc91rfagJfSS8uOz8yb+Bf88ve7sQK/ceg9dd1ZjxDHqeUF9YN 55W7SlXFkLe1T3SzLflEs3aheGLhq07z1L3iSL6HJTkSh6uPqL6UxwOCYIEVoOb+p1/k av8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:organization:arc-authentication-results; bh=2RuDgNeXb3n3XDaNpcgXi0u7a6N0VacerkSskwJddGE=; b=VD64EhfXNu3OjQTvyyk+HxJmA7YEqH+uUAOoGLXcRBqLkqjARZPYGozhqdFl/WWPAL 8H4MWffc+6hAudYza/aeKbXkQfdGnFpBPtmmdM5pqGi4o8WHfmoyZVSH7Tp1XHX8m4to ULUbaEGSfyayUlmzwWkOo8qsyMKKGQ44jPYAg6ZxO7Af+raE50Ip3uRBtacb4UAfYwKN ZtcLH6AXbtUQcmS8JulHMU+H6yLSqFbtXWYxUiTEj3BiIvbOlCHZY2jusEs9iGgL/re9 5aJh9p4DoUFuWui1dOGWqK3k22qGLQ7tqtEVlv5UnqJBXz/EwTyuJgnGWUg9w2YSSn6E mRig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o32-v6si3397714pld.369.2018.04.19.06.38.49; Thu, 19 Apr 2018 06:39:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753436AbeDSNdP (ORCPT + 99 others); Thu, 19 Apr 2018 09:33:15 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:34812 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753423AbeDSNdK (ORCPT ); Thu, 19 Apr 2018 09:33:10 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 92466818F056; Thu, 19 Apr 2018 13:33:09 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-121-60.rdu2.redhat.com [10.10.121.60]) by smtp.corp.redhat.com (Postfix) with ESMTP id B3D7A2166BC7; Thu, 19 Apr 2018 13:33:08 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 Subject: [PATCH 17/24] VFS: Remove kern_mount_data() [ver #7] From: David Howells To: viro@zeniv.linux.org.uk Cc: linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, dhowells@redhat.com, linux-security-module@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-afs@lists.infradead.org Date: Thu, 19 Apr 2018 14:33:07 +0100 Message-ID: <152414478717.23902.768680385310283192.stgit@warthog.procyon.org.uk> In-Reply-To: <152414466005.23902.12967974041384198114.stgit@warthog.procyon.org.uk> References: <152414466005.23902.12967974041384198114.stgit@warthog.procyon.org.uk> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Thu, 19 Apr 2018 13:33:09 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Thu, 19 Apr 2018 13:33:09 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 c61ff2ab090a..dff482ad87b4 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -3192,13 +3192,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); - /* * Return true if path is reachable from root * diff --git a/include/linux/fs.h b/include/linux/fs.h index c1f1428f6c67..9bc78e2c3ce5 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -2187,7 +2187,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 *);