* [PATCH] fs: drop pointless static qualifier in bd_mount()
@ 2019-02-18 13:59 Mao Wenan
0 siblings, 0 replies; only message in thread
From: Mao Wenan @ 2019-02-18 13:59 UTC (permalink / raw)
To: viro, linux-fsdevel, kernel-janitors
There is no need to have the struct vfsmount *bd_mnt with static
since new value always be assigned before use it.
Signed-off-by: Mao Wenan <maowenan@huawei.com>
---
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 58a4c1217fa8..dcf54494c79e 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -847,7 +847,7 @@ EXPORT_SYMBOL_GPL(blockdev_superblock);
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|
--
2.20.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-02-18 14:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-18 13:59 [PATCH] fs: drop pointless static qualifier in bd_mount() Mao Wenan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).