From patchwork Mon Nov 12 02:23:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 10677997 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 673F813AD for ; Mon, 12 Nov 2018 02:14:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5701D2A2D0 for ; Mon, 12 Nov 2018 02:14:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4B3362A2D5; Mon, 12 Nov 2018 02:14:27 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 EAEDA2A2DA for ; Mon, 12 Nov 2018 02:14:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727961AbeKLMFT (ORCPT ); Mon, 12 Nov 2018 07:05:19 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:53415 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725928AbeKLMFT (ORCPT ); Mon, 12 Nov 2018 07:05:19 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 5E6CADCB6559F; Mon, 12 Nov 2018 10:14:21 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.408.0; Mon, 12 Nov 2018 10:14:15 +0800 From: YueHaibing To: Alexander Viro CC: Yue Haibing , , Subject: [PATCH -next] block: drop pointless static qualifier in bd_mount() Date: Mon, 12 Nov 2018 02:23:47 +0000 Message-ID: <1541989427-104478-1-git-send-email-yuehaibing@huawei.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Yue Haibing There is no need to have the 'struct vfsmount *bd_mnt' variable static since new value always be assigned before use it. Signed-off-by: Yue Haibing --- fs/block_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/block_dev.c b/fs/block_dev.c index 38b8ce0..4064622 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -810,7 +810,7 @@ static struct dentry *bd_mount(struct file_system_type *fs_type, void __init bdev_cache_init(void) { int err; - static struct vfsmount *bd_mnt; + struct vfsmount *bd_mnt; bdev_cachep = kmem_cache_create("bdev_cache", sizeof(struct bdev_inode), 0, (SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|