aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/namespace.c')
-rw-r--r--fs/namespace.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index f70914a859a4..81f934b5d571 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -3239,7 +3239,6 @@ static void __init init_mount_tree(void)
3239 3239
3240void __init mnt_init(void) 3240void __init mnt_init(void)
3241{ 3241{
3242 unsigned u;
3243 int err; 3242 int err;
3244 3243
3245 mnt_cache = kmem_cache_create("mnt_cache", sizeof(struct mount), 3244 mnt_cache = kmem_cache_create("mnt_cache", sizeof(struct mount),
@@ -3248,22 +3247,17 @@ void __init mnt_init(void)
3248 mount_hashtable = alloc_large_system_hash("Mount-cache", 3247 mount_hashtable = alloc_large_system_hash("Mount-cache",
3249 sizeof(struct hlist_head), 3248 sizeof(struct hlist_head),
3250 mhash_entries, 19, 3249 mhash_entries, 19,
3251 0, 3250 HASH_ZERO,
3252 &m_hash_shift, &m_hash_mask, 0, 0); 3251 &m_hash_shift, &m_hash_mask, 0, 0);
3253 mountpoint_hashtable = alloc_large_system_hash("Mountpoint-cache", 3252 mountpoint_hashtable = alloc_large_system_hash("Mountpoint-cache",
3254 sizeof(struct hlist_head), 3253 sizeof(struct hlist_head),
3255 mphash_entries, 19, 3254 mphash_entries, 19,
3256 0, 3255 HASH_ZERO,
3257 &mp_hash_shift, &mp_hash_mask, 0, 0); 3256 &mp_hash_shift, &mp_hash_mask, 0, 0);
3258 3257
3259 if (!mount_hashtable || !mountpoint_hashtable) 3258 if (!mount_hashtable || !mountpoint_hashtable)
3260 panic("Failed to allocate mount hash table\n"); 3259 panic("Failed to allocate mount hash table\n");
3261 3260
3262 for (u = 0; u <= m_hash_mask; u++)
3263 INIT_HLIST_HEAD(&mount_hashtable[u]);
3264 for (u = 0; u <= mp_hash_mask; u++)
3265 INIT_HLIST_HEAD(&mountpoint_hashtable[u]);
3266
3267 kernfs_init(); 3261 kernfs_init();
3268 3262
3269 err = sysfs_init(); 3263 err = sysfs_init();