Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2704809ybz; Mon, 27 Apr 2020 03:00:10 -0700 (PDT) X-Google-Smtp-Source: APiQypIrJjwdZmq0aYuUEQWvO+T+hGLubs9/3739GUwOMYZMasnfceV5pOzwWpn9+L5xMACdwcnH X-Received: by 2002:a05:6402:22a6:: with SMTP id cx6mr17111078edb.277.1587981610144; Mon, 27 Apr 2020 03:00:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587981610; cv=none; d=google.com; s=arc-20160816; b=Jz2z+/c9pN60zNnjBAv6ylkuNQ67USNHpq9X0yxqsEkg0Cb8DPOUyZTJG0w5+nTUQ2 PfZTT/JeNvWvwplX6Z2F4Tk+H/DbUA6JMv+2aA8md9ENjr2HAgAxPqKLkHH8fKfZ9MFT 3NJhrakb6I9Ej5MVqBm80gmrXk4zLx3fI1kj5+wQsc44+0qFJX9r2stsUdvlCOnAMEFU 22Fd60T7T/jMcA9Sd9RqEX9tuydL99hhkl5YHbHBe/Vkj8QjbkADCDt1wlWlWQOjD+hO +UCEGvaiQrWrxpcgiYZyT65ahx43uQSM8EwgM4slhK4ObwYOyfW6IKFRB1opq9zbXImq 1gYQ== 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 :dkim-signature; bh=fiuWFSiyWrxr5pZxiwa99BOM3ARppZRkANpBIsZuVbs=; b=FvcVAWtzAYkYjsuyEoWD+zRspxGsOaGrqfZ2Q3CIPiFkdxXWRysgB1Oh2JD/NZBf9+ MhIXQQXXf9sxMUUJWlUNlBcOYPDcc2cpzfXECq2xzzgEe4oxewzY6pT11JCvGAtpzYWk 87MOl5uTLGUSX8Aq0Kd2icr5A/VruIJovgSEwbbssWqwxiApcCph+8H1I+M8vz35Wjy8 BK1lR6BNeAaMuWB1Ql5t+sK1H3YlNmo+NWBXb4P1Ejv4SmkeU/EvcndtuYsacUogLe/d ygW8bo+PvtmlC3h9SFKqEk6FDVzmWTsJflOshhp7G45eXrC9LjuxCcLv5a8RVmymeR39 EudA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=gYDzouml; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e23si7349801edq.517.2020.04.27.02.59.47; Mon, 27 Apr 2020 03:00:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=gYDzouml; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726907AbgD0J7O (ORCPT + 99 others); Mon, 27 Apr 2020 05:59:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726826AbgD0J7N (ORCPT ); Mon, 27 Apr 2020 05:59:13 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8057CC0610D6; Mon, 27 Apr 2020 02:59:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=fiuWFSiyWrxr5pZxiwa99BOM3ARppZRkANpBIsZuVbs=; b=gYDzoumlq0F5c4vAjNogRUuTgf RMLnBxdYg5G9ZJJTPfvpXFk0ldSTHnjPpwWRVjtCBKYYjcWG832oLknPhSlVrPv3A0GaAtdDL2l1/ U8FcjO+EN6juTY5DG7jqAKqoCurovCwbSE+OV5DNmoEH2fPIm+R5NW0jo+BKLY/frncByS2odBfmM Ycug6TDO0Q4UZco0vn6uAiShJfb75lL6wGe/P/sMT5CsW0tJ951BNjZi1C8vmqJcuVO0UfUyK3rBc I84/MZXzSMOZyb7iT/QsYUsBhjnWuLT4ripfHdnr0+UqRR/f6QAWI4e01pDtfSIIg60DpNxkSnH0b Ccf7BA9A==; Received: from [2001:4bb8:193:f203:c70:4a89:bc61:2] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jT0Xg-0003iN-VL; Mon, 27 Apr 2020 09:59:13 +0000 From: Christoph Hellwig To: linux-ext4@vger.kernel.org, viro@zeniv.linux.org.uk Cc: jack@suse.cz, tytso@mit.edu, adilger@dilger.ca, riteshh@linux.ibm.com, amir73il@gmail.com, linux-fsdevel@vger.kernel.org, linux-unionfs@vger.kernel.org Subject: [PATCH 5/8] fs: mark __generic_block_fiemap static Date: Mon, 27 Apr 2020 11:58:55 +0200 Message-Id: <20200427095858.1440608-6-hch@lst.de> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200427095858.1440608-1-hch@lst.de> References: <20200427095858.1440608-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org There is no caller left outside of ioctl.c. Signed-off-by: Christoph Hellwig --- fs/ioctl.c | 4 +--- include/linux/fs.h | 4 ---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/fs/ioctl.c b/fs/ioctl.c index 282d45be6f453..f55f53c7824bb 100644 --- a/fs/ioctl.c +++ b/fs/ioctl.c @@ -299,8 +299,7 @@ static inline loff_t blk_to_logical(struct inode *inode, sector_t blk) * If you use this function directly, you need to do your own locking. Use * generic_block_fiemap if you want the locking done for you. */ - -int __generic_block_fiemap(struct inode *inode, +static int __generic_block_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, loff_t start, loff_t len, get_block_t *get_block) { @@ -445,7 +444,6 @@ int __generic_block_fiemap(struct inode *inode, return ret; } -EXPORT_SYMBOL(__generic_block_fiemap); /** * generic_block_fiemap - FIEMAP for block based inodes diff --git a/include/linux/fs.h b/include/linux/fs.h index 4f6f59b4f22a8..3104c6f7527b5 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -3299,10 +3299,6 @@ static inline int vfs_fstat(int fd, struct kstat *stat) extern const char *vfs_get_link(struct dentry *, struct delayed_call *); extern int vfs_readlink(struct dentry *, char __user *, int); -extern int __generic_block_fiemap(struct inode *inode, - struct fiemap_extent_info *fieinfo, - loff_t start, loff_t len, - get_block_t *get_block); extern int generic_block_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, u64 start, u64 len, get_block_t *get_block); -- 2.26.1