* [PATCH -next] block: drop pointless static qualifier in bd_mount()
@ 2018-11-12 2:23 ` YueHaibing
0 siblings, 0 replies; 2+ messages in thread
From: YueHaibing @ 2018-11-12 2:23 UTC (permalink / raw)
To: Alexander Viro; +Cc: Yue Haibing, linux-fsdevel, kernel-janitors
From: Yue Haibing <yuehaibing@huawei.com>
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 <yuehaibing@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 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|
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH -next] block: drop pointless static qualifier in bd_mount()
@ 2018-11-12 2:23 ` YueHaibing
0 siblings, 0 replies; 2+ messages in thread
From: YueHaibing @ 2018-11-12 2:23 UTC (permalink / raw)
To: Alexander Viro; +Cc: Yue Haibing, linux-fsdevel, kernel-janitors
From: Yue Haibing <yuehaibing@huawei.com>
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 <yuehaibing@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 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|
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-11-12 12:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-12 2:23 [PATCH -next] block: drop pointless static qualifier in bd_mount() YueHaibing
2018-11-12 2:23 ` YueHaibing
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.