From patchwork Mon Aug 5 16:03:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 11077259 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 463A614E5 for ; Mon, 5 Aug 2019 16:03:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3730122A65 for ; Mon, 5 Aug 2019 16:03:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2B42E28711; Mon, 5 Aug 2019 16:03:26 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E24172094F for ; Mon, 5 Aug 2019 16:03:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 17F136E4CB; Mon, 5 Aug 2019 16:03:24 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by gabe.freedesktop.org (Postfix) with ESMTPS id AE7646E4C5; Mon, 5 Aug 2019 16:03:22 +0000 (UTC) Received: by mail-pg1-x541.google.com with SMTP id t132so39970272pgb.9; Mon, 05 Aug 2019 09:03:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kAXH7dmfPxkVKecczubWm28FV2SWqcc9gtgOItNZVds=; b=pnCHKBbdWyKzKk1u/CyZQfwYdPvuiIl45JzoEi+QIysJIczvXL4B3kuGh3JmeSYgJr rcXSZ4jz3xUH6BBYhY+IA6GDJ+omgYkRplbrwfYa+NtBFBZENYqOfeipgpaIVu6+ORif JqS8EDBCn1C//IPefgooEkOUnkNmojxChtgdE18wtw6WTl3mN18cwBNZpLdLMMlvf8pE LX/pp1HxAcLPaK6TDMZaJuritQpbMofDVIP/0W1OC6SpFyUU0/XNqzIq8liVllFalm2o LlLTFoVWH25h+63gQq4dL9IdbiZSIbvdUov+7HV+sp1xCRLlf2kx3XLgFXWVrGTw+mMs xHcA== X-Gm-Message-State: APjAAAUs9o269DeD+ih4MPkYXUVrirFFewTL3tY/jbdWqympSVTvy/8S 3xFjjuYrUSKXG2OPeRC9yg0= X-Google-Smtp-Source: APXvYqwake9iGeyg5D1izNDXJGpczYP7MTnQ0K9ZBLacoJxfwKE3BBfH2t95Ti8VkSC7zx/6UqqtbA== X-Received: by 2002:a17:90a:bb01:: with SMTP id u1mr18412038pjr.92.1565021002178; Mon, 05 Aug 2019 09:03:22 -0700 (PDT) Received: from localhost.localdomain ([121.137.63.184]) by smtp.gmail.com with ESMTPSA id n98sm17061262pjc.26.2019.08.05.09.03.17 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 05 Aug 2019 09:03:21 -0700 (PDT) From: Sergey Senozhatsky To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Chris Wilson , Alexander Viro , David Howells , Christoph Hellwig Date: Tue, 6 Aug 2019 01:03:05 +0900 Message-Id: <20190805160307.5418-2-sergey.senozhatsky@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190805160307.5418-1-sergey.senozhatsky@gmail.com> References: <20190805160307.5418-1-sergey.senozhatsky@gmail.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kAXH7dmfPxkVKecczubWm28FV2SWqcc9gtgOItNZVds=; b=Gxr2l8y9Iy7q36cxCIwqgG158KVCtlGm8lkLRUTOv98oC1Wod5J5OKLzhTcJxGIU3W T1zKPk1hL60RlPdDYiOTAWf9MwJIP9vagDX9NnaedrXfOwZvJYn9QrtZ3JT0luCQvIDF WodtpFaOOJwSsvXWeatwwE5bo5LGHCxe+DOOpXov01IWS+50r+Ji9AUoQypZ7ctvIH14 W/2ZV0yihcylvdOXU4zZejgAoYLGdATzhBfjLKYAZ8sYK4SqMdQoTOf7qXunsSxXwXkp wydhszXgY9YN2Q2y2aoj3zKKGWQyqmEMDIZ9ThwJCGq+TsexbxSWcc5A93L0zM+Hgvra O/0Q== Subject: [Intel-gfx] [PATCHv2 1/3] fs: export put_filesystem() X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Sergey Senozhatsky , linux-fsdevel@vger.kernel.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Modules can use get_fs_type(), which is exported, but are unable to put_filesystem(). Export it and let modules to also decrement corresponding file systems' reference counters. Signed-off-by: Sergey Senozhatsky --- fs/filesystems.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/filesystems.c b/fs/filesystems.c index 9135646e41ac..02669839b584 100644 --- a/fs/filesystems.c +++ b/fs/filesystems.c @@ -45,6 +45,7 @@ void put_filesystem(struct file_system_type *fs) { module_put(fs->owner); } +EXPORT_SYMBOL(put_filesystem); static struct file_system_type **find_filesystem(const char *name, unsigned len) {