Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2953457imm; Thu, 24 May 2018 19:48:11 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoQxpHxPN2GsEMTK2B8tF9y2zso8MRSh2S5i3v6FBcLY6i/8aKvPzxi+RMB56KtaSQoQaZf X-Received: by 2002:a65:4cc7:: with SMTP id n7-v6mr493375pgt.354.1527216491590; Thu, 24 May 2018 19:48:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527216491; cv=none; d=google.com; s=arc-20160816; b=eoTWlMnuHpPA7tuvw3Gkr79VzlOxPYfrAzPyARHixkTPEia/mTBc88zTsBFa8p9QY6 StzgVZiGqYhISjzdWs3FAZYfiTza8Zv15STzZpckCYLf0aVyl+PyXZaT+GmarqehBkuX p4Wjet9DYc7VIABii/pUzIjOrwNMV7DOxa1cH/DMP8pOca8j8JmBQe6DwFq3KqAdnFTM f1imkKsVMJnFMJxeF04Uk/3iGKnkzm2NkeKpcKWgZZfNVgYZ3ahXpLTd8Ppu6Ir6n9Qw ZYUT9ytbRgPfsGltJ9WMFArUDpuL4LXyx9IIoiwBapp2F7dqkI7eMSDl3CmxQ1cG0yMe FNiw== 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=TpbS1JDbUQhanSGC2RaEK8eYCHdwh7b5kCpRqnkAcF4=; b=NXQKcaJv6BYYX2swDZG0LYuEPIZUeKRxRWZn9jtgwUDIvu5U2lzXUfjZbKR6ZPo5y1 tQoVRlI7kFxAdW9rDuAlPTJM776nYpscm9E/qR3y9AwQmH3ESn7spzOW6JOX5umGQgNy xkoI6PJTZnU6W2W6NY5dma/Ycs5lfUeRa/BGk5V+nvQ8wdrzq2Shq+D6S5rDuYLyTkx7 cM9GvN6RYspehZ3yUhfZCOV986Fo+Cva0nTyY8HYfihODEtMMYurjgHKINwW9p2qqN0+ ax+hIdVyAg4NWh77uPZWaDsihvHMxF7gMQv580yaBsih+unPTu+XkZYbk5Ur4UJfqVgH 5HbQ== 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 x1-v6si21671945pfm.32.2018.05.24.19.47.57; Thu, 24 May 2018 19:48:11 -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 S1161607AbeEYAHb (ORCPT + 99 others); Thu, 24 May 2018 20:07:31 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:59648 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965004AbeEYAHW (ORCPT ); Thu, 24 May 2018 20:07:22 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 60DD7859AB; Fri, 25 May 2018 00:07:22 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-255.rdu2.redhat.com [10.10.120.255]) by smtp.corp.redhat.com (Postfix) with ESMTP id B5C7B111671C; Fri, 25 May 2018 00:07:21 +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 18/32] VFS: Remove kern_mount_data() [ver #8] From: David Howells To: viro@zeniv.linux.org.uk Cc: dhowells@redhat.com, linux-fsdevel@vger.kernel.org, linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org Date: Fri, 25 May 2018 01:07:21 +0100 Message-ID: <152720684118.9073.16298239896848734666.stgit@warthog.procyon.org.uk> In-Reply-To: <152720672288.9073.9868393448836301272.stgit@warthog.procyon.org.uk> References: <152720672288.9073.9868393448836301272.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.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 25 May 2018 00:07:22 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 25 May 2018 00:07:22 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.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 14be35d02050..ead49e822418 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -3198,13 +3198,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 19bbed58829d..e771803cc8dc 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -2186,7 +2186,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 *);