diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-09-16 21:34:53 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-10-24 23:34:54 -0400 |
commit | 59aa0da8e232f990be793d0ea23ca74675b236b3 (patch) | |
tree | 8ab1a581a5b854d6f8f5e8c3a2ba9e6ccce6ce67 /fs/namespace.c | |
parent | 72c2d53192004845cbc19cd8a30b3212a9288140 (diff) |
initialize namespace_sem statically
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namespace.c')
-rw-r--r-- | fs/namespace.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index 5918fc31a636..827aea4c3242 100644 --- a/fs/namespace.c +++ b/fs/namespace.c | |||
@@ -39,7 +39,7 @@ static int mnt_group_start = 1; | |||
39 | static struct list_head *mount_hashtable __read_mostly; | 39 | static struct list_head *mount_hashtable __read_mostly; |
40 | static struct list_head *mountpoint_hashtable __read_mostly; | 40 | static struct list_head *mountpoint_hashtable __read_mostly; |
41 | static struct kmem_cache *mnt_cache __read_mostly; | 41 | static struct kmem_cache *mnt_cache __read_mostly; |
42 | static struct rw_semaphore namespace_sem; | 42 | static DECLARE_RWSEM(namespace_sem); |
43 | 43 | ||
44 | /* /sys/fs */ | 44 | /* /sys/fs */ |
45 | struct kobject *fs_kobj; | 45 | struct kobject *fs_kobj; |
@@ -2767,8 +2767,6 @@ void __init mnt_init(void) | |||
2767 | unsigned u; | 2767 | unsigned u; |
2768 | int err; | 2768 | int err; |
2769 | 2769 | ||
2770 | init_rwsem(&namespace_sem); | ||
2771 | |||
2772 | mnt_cache = kmem_cache_create("mnt_cache", sizeof(struct mount), | 2770 | mnt_cache = kmem_cache_create("mnt_cache", sizeof(struct mount), |
2773 | 0, SLAB_HWCACHE_ALIGN | SLAB_PANIC, NULL); | 2771 | 0, SLAB_HWCACHE_ALIGN | SLAB_PANIC, NULL); |
2774 | 2772 | ||