Received: by 10.223.164.202 with SMTP id h10csp853137wrb; Tue, 7 Nov 2017 16:11:29 -0800 (PST) X-Google-Smtp-Source: ABhQp+QkqOiEO+TKeJn7NS/Lrp6On5ofXlkCVlldpUMKzYSIYQ9nD/v0YTipaPjd8Z9qJoBPboA8 X-Received: by 10.99.189.65 with SMTP id d1mr466859pgp.48.1510099889243; Tue, 07 Nov 2017 16:11:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510099889; cv=none; d=google.com; s=arc-20160816; b=0yvxyz/bIGm9WRavPaC9MEyOOd0NKhS0CTGVJvgup7g7ucDH5hLFhqot98OBGEKv4P k4yLQIEtRO74kYdP8NtZyw+zMw4fkNvBRpZozKALV7zLmo4ZYNkuOiifrHL5FXpnBpOM gZhnSVANCdqfJo8MYCFbaSk4BsN9fqSdDjV/KXen8+FTg2zrMC7bjjFPhiQMvI9LFR22 oRYi6hho1d7Mxt4/sCrXbKzgyX8wmU7VWtPbs/pEW2/v90pmTmBw2XuXXRi24/2rJ+fg lt7y8bov7L/y0sb3f4k2uE5kDPbVeWDEsWxRSMZXqg4Oyi6MuGw2gkHc7Ifaocn3mBhy yNgw== 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=Hs+QX/IFNjkkSRBJ+Im48EuK5vV1SnsRysDieMvaTQ0=; b=BBWnMy98vLs1jcoIyBJLMPq1XrZ+A/1+kJQbBQf2htFjag8Dzj2Bfq71mwK1Fff8nR VQcr31CKAqQyP8GscL85vgQYBlCeG5gdxsmB29CcaCTpOn9Ce8OjQ0jg2DUofGLleBhL L4tweyKdIhGBIxjL3KHEYxjhHAs3c2hyTYPZ7R4OVEiHbYDqr7YZeRH2PHYS/Hu0yAZH lHJaHhZNoRl4uBq8DTVMEFhQkD7OMdWCBqBlGyQbob7ISHe1dyKT2jb/Tsc6SYHF+ns8 Smuk/d6iMjzvnGmXyWbPek8+iX7RrsMnlDCKKoLI8HHATBSCqwsC248VMDAshfcEmxlf u9WA== 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 b7si2168232plr.706.2017.11.07.16.11.16; Tue, 07 Nov 2017 16:11:29 -0800 (PST) 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 S1757565AbdKGM2J (ORCPT + 91 others); Tue, 7 Nov 2017 07:28:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40898 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752545AbdKGM2H (ORCPT ); Tue, 7 Nov 2017 07:28:07 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8A2F9C04AC48; Tue, 7 Nov 2017 12:28:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 8A2F9C04AC48 Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=marcandre.lureau@redhat.com Received: from localhost (ovpn-112-38.ams2.redhat.com [10.36.112.38]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1409D60BE3; Tue, 7 Nov 2017 12:28:06 +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 v3 1/9] shmem: unexport shmem_add_seals()/shmem_get_seals() Date: Tue, 7 Nov 2017 13:27:52 +0100 Message-Id: <20171107122800.25517-2-marcandre.lureau@redhat.com> In-Reply-To: <20171107122800.25517-1-marcandre.lureau@redhat.com> References: <20171107122800.25517-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.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 07 Nov 2017 12:28:07 +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. And no danger in removing the EXPORTs as the routines only work with shmem file structs. Signed-off-by: Marc-André Lureau Reviewed-by: Mike Kravetz --- 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 ed91ce57c428..1f5bf07cb8be 100644 --- a/include/linux/shmem_fs.h +++ b/include/linux/shmem_fs.h @@ -110,8 +110,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.125.g8f49766d64 From 1583468460669702224@xxx Wed Nov 08 03:53:21 +0000 2017 X-GM-THRID: 1583468460669702224 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread