Received: by 10.223.164.221 with SMTP id h29csp161513wrb; Tue, 31 Oct 2017 11:44:05 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TnAOeNAlr1KCmqKFUp+hCKJqA9hIKb6X4Ih16e6KL5NS5BccZb6wlNn6yioJSaNx2SNBLH X-Received: by 10.101.82.8 with SMTP id o8mr2732518pgp.422.1509475445134; Tue, 31 Oct 2017 11:44:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509475445; cv=none; d=google.com; s=arc-20160816; b=TjhZUFaZdcEsuZTe7D7nr/eKE/yGR9ecnpd/SYDtuqpgF6lbF8baoKliQgH3fDzwo8 BfjJDXQDcENXdoe9sQvyUqNsVplpWlem7BJB+vZi5y8lDnf2WwXYzTzjGNVm3ibvuRGA XyPgqqmQmkwByqDYMDZ4/eBB8VzZcom+1pTPxoecGDBVYtix+PH7IXZU/as69Ny+6QO8 //c7JBDJI7kj5Asv+IWoRymkARxJQTc8NR1CVTaNGUB29z2oQuOI6RSHFz9UNf9dgAd4 kAuTgjvrDwD/4p/mlYD3xAvGcu/DGtKSCRGvLlH3CR/MCIPUyH13WSEqaKrGalYmtRw0 f/EA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dmarc-filter:arc-authentication-results; bh=we+yzinpQUN6nWUXA6N6uAMlnqDC7ztU432R5X4UhJ4=; b=YU45Ejhp/7uK5CswWn2ShupnR4xT8/ULi2HV3Ziuqmb3B3sF5apDn46/1dHeXh3ml/ IYGOnH2ip9cm71YddyqwATCsES+eo6mb3FUMFLjGAtWmwf+lLvYWLkmNPkk0Q0Yrk932 LEo+zLyIntEM3o7SYEac4/nUwKmT+N7VdUBtDUoklwhIMamIaWqdxpBjj6x07v4hPqrg PoT4Ir4Ue4dgeob6sy1v7K1z34aeys2MG3DwBqgaKTDLSKajZ76qvgwBcZCbVDeG2QPP 5nbmzLlTw32N47U07zyaqwNbTfqdkpw1sYQLW8PAag3dhkmr6GMSApPZOPpl+rYDrH7a 5C4Q== 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 t5si1685995pgr.20.2017.10.31.11.43.51; Tue, 31 Oct 2017 11:44:05 -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 S932799AbdJaSlE (ORCPT + 99 others); Tue, 31 Oct 2017 14:41:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38958 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932625AbdJaSlC (ORCPT ); Tue, 31 Oct 2017 14:41:02 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 573D07EAA1; Tue, 31 Oct 2017 18:41:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 573D07EAA1 Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=marcandre.lureau@redhat.com Received: from localhost (ovpn-112-19.ams2.redhat.com [10.36.112.19]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6366B5D962; Tue, 31 Oct 2017 18:40:59 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: aarcange@redhat.com, hughd@google.com, nyc@holomorphy.com, mike.kravetz@oracle.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Subject: [PATCH 1/6] shmem: unexport shmem_add_seals()/shmem_get_seals() Date: Tue, 31 Oct 2017 19:40:47 +0100 Message-Id: <20171031184052.25253-2-marcandre.lureau@redhat.com> In-Reply-To: <20171031184052.25253-1-marcandre.lureau@redhat.com> References: <20171031184052.25253-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Tue, 31 Oct 2017 18:41:02 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The functions are called through shmem_fcntl() only. Signed-off-by: Marc-André Lureau --- include/linux/shmem_fs.h | 2 -- mm/shmem.c | 6 ++---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/include/linux/shmem_fs.h b/include/linux/shmem_fs.h index b6c3540e07bc..557d0c3b6eca 100644 --- a/include/linux/shmem_fs.h +++ b/include/linux/shmem_fs.h @@ -109,8 +109,6 @@ extern void shmem_uncharge(struct inode *inode, long pages); #ifdef CONFIG_TMPFS -extern int shmem_add_seals(struct file *file, unsigned int seals); -extern int shmem_get_seals(struct file *file); extern long shmem_fcntl(struct file *file, unsigned int cmd, unsigned long arg); #else diff --git a/mm/shmem.c b/mm/shmem.c index 07a1d22807be..37260c5e12fa 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -2722,7 +2722,7 @@ static int shmem_wait_for_pins(struct address_space *mapping) F_SEAL_GROW | \ F_SEAL_WRITE) -int shmem_add_seals(struct file *file, unsigned int seals) +static int shmem_add_seals(struct file *file, unsigned int seals) { struct inode *inode = file_inode(file); struct shmem_inode_info *info = SHMEM_I(inode); @@ -2791,16 +2791,14 @@ int shmem_add_seals(struct file *file, unsigned int seals) inode_unlock(inode); return error; } -EXPORT_SYMBOL_GPL(shmem_add_seals); -int shmem_get_seals(struct file *file) +static int shmem_get_seals(struct file *file) { if (file->f_op != &shmem_file_operations) return -EINVAL; return SHMEM_I(file_inode(file))->seals; } -EXPORT_SYMBOL_GPL(shmem_get_seals); long shmem_fcntl(struct file *file, unsigned int cmd, unsigned long arg) { -- 2.15.0.rc0.40.gaefcc5f6f From 1582911069558668008@xxx Thu Nov 02 00:13:52 +0000 2017 X-GM-THRID: 1582828028132757201 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread