Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp17193imm; Fri, 21 Sep 2018 09:34:51 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZMJ/ACJIJcg8kx86l5E/eiEAJFHgc7yDLR7WyjYKh98oFUmz4W4pIGmC31nUM28HF9l+iR X-Received: by 2002:a63:2bc9:: with SMTP id r192-v6mr42673883pgr.386.1537547691631; Fri, 21 Sep 2018 09:34:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537547691; cv=none; d=google.com; s=arc-20160816; b=M/MvsnNDHN8PGvsxEWQW7m5ykx8isga2LZNBJ+2DD7BGJALQfUBZUUMHws9kXSrpBR CjVAK9P6jY0cVQ24t+K3ttsz+EZce7oUmRzsPcKXdj4LHnd1Avg+VcTjKEfw+YRefpDf 5j1Sz4YECBRC4Csq6VOkNPwxvo03aNoSy1nhBSi6jrrVqN8f4vrh7Ey2lCSC64pcLYWo qB2sW++M3obiy0HkWvVEcpYinptdxiLU+hKEtWvlUBvqWRtMh2PK5Tv/OXKw8w2N7LU3 5xoGNaKMEsUqzgiHlyAMaO28KZrC29SwiOu8red2wKtLQLMP8sXfdgBj5YCSL2wQRwnN ZnKQ== 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; bh=j4HEAkgMMS+gFSWZZBgRqNGtoamSkUUcE+Z5Xk+CwH8=; b=Hn7xJXEIkDkMRsUfJhOdrzPq8vCZCGQcYSdoPi2FZqlgwYKn4h583YzJKg5MRMr/dK 0dVLYzznRKLCll5yQjvQRZcpMM2pSDirib58pm295gKYCR3TkOgyl7zIAfczV/xy8JK/ RcWwvRnPQ6GsVokT//GMdnAiF8fn8vEQlNjup2703QMNC7gcERNFgA6RMMpNsERScN6M MPnpZuiAQQiDsaKh7Zew7h0qpLzjVjXnwGYYLtGTusJ/NmFqpnoP00xwOHkCEyqe489H xpH3+q/xfMItbEMOD9qMqwCMvo4o6pIu+CaMzC7tOu/c5jx1QpOFXOJdpuXwR0GbMxW4 m5mQ== 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 h5-v6si26023859pll.385.2018.09.21.09.34.35; Fri, 21 Sep 2018 09:34:51 -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 S2391091AbeIUWXA (ORCPT + 99 others); Fri, 21 Sep 2018 18:23:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49758 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390076AbeIUWXA (ORCPT ); Fri, 21 Sep 2018 18:23:00 -0400 Received: from smtp.corp.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2D72E12BBB; Fri, 21 Sep 2018 16:33:21 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-123-84.rdu2.redhat.com [10.10.123.84]) by smtp.corp.redhat.com (Postfix) with ESMTP id 73FC3309138F; Fri, 21 Sep 2018 16:33:19 +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 23/34] vfs: Remove kern_mount_data() [ver #12] From: David Howells To: viro@zeniv.linux.org.uk Cc: torvalds@linux-foundation.org, dhowells@redhat.com, ebiederm@xmission.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, mszeredi@redhat.com Date: Fri, 21 Sep 2018 17:33:18 +0100 Message-ID: <153754759870.17872.3144316394384775981.stgit@warthog.procyon.org.uk> In-Reply-To: <153754740781.17872.7869536526927736855.stgit@warthog.procyon.org.uk> References: <153754740781.17872.7869536526927736855.stgit@warthog.procyon.org.uk> User-Agent: StGit/unknown-version MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Fri, 21 Sep 2018 16:33:21 +0000 (UTC) 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 d841ba5568d9..156261d03c12 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -3328,13 +3328,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 4c3c388646bc..14e08020890f 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -2232,7 +2232,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 *);