From patchwork Wed Mar 29 10:56:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kara X-Patchwork-Id: 9651323 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 30C7C602BE for ; Wed, 29 Mar 2017 10:58:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F1222844E for ; Wed, 29 Mar 2017 10:58:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 241E22846B; Wed, 29 Mar 2017 10:58:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D05972844E for ; Wed, 29 Mar 2017 10:58:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932641AbdC2K6U (ORCPT ); Wed, 29 Mar 2017 06:58:20 -0400 Received: from mx2.suse.de ([195.135.220.15]:33766 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756005AbdC2K43 (ORCPT ); Wed, 29 Mar 2017 06:56:29 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 932A8ACB1; Wed, 29 Mar 2017 10:56:27 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 31A2B1E1247; Wed, 29 Mar 2017 12:56:26 +0200 (CEST) From: Jan Kara To: Cc: linux-block@vger.kernel.org, Christoph Hellwig , Jan Kara Subject: [PATCH 03/25] bdi: Export bdi_alloc_node() and bdi_put() Date: Wed, 29 Mar 2017 12:56:01 +0200 Message-Id: <20170329105623.18241-4-jack@suse.cz> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170329105623.18241-1-jack@suse.cz> References: <20170329105623.18241-1-jack@suse.cz> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP MTD will want to call bdi_alloc_node() and bdi_put() directly. Export these functions. Signed-off-by: Jan Kara Reviewed-by: Christoph Hellwig --- mm/backing-dev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/backing-dev.c b/mm/backing-dev.c index 164ccc93690f..3dd175986390 100644 --- a/mm/backing-dev.c +++ b/mm/backing-dev.c @@ -855,6 +855,7 @@ struct backing_dev_info *bdi_alloc_node(gfp_t gfp_mask, int node_id) } return bdi; } +EXPORT_SYMBOL(bdi_alloc_node); int bdi_register_va(struct backing_dev_info *bdi, struct device *parent, const char *fmt, va_list args) @@ -971,6 +972,7 @@ void bdi_put(struct backing_dev_info *bdi) { kref_put(&bdi->refcnt, release_bdi); } +EXPORT_SYMBOL(bdi_put); void bdi_destroy(struct backing_dev_info *bdi) {