From 083e8742e301a24f0c458696b45b481345888b85 Mon Sep 17 00:00:00 2001 From: Hamza Mahfooz Date: Mon, 20 Jul 2026 07:23:31 -0400 Subject: [PATCH] mount: remove redundant panic() in mnt_init() Since at least as far back as commit 0818bf27c05b ("resizable namespace.c hashes"), we call alloc_large_system_hash() in mnt_init() which already panics if the table is NULL. Signed-off-by: Hamza Mahfooz Link: https://patch.msgid.link/20260720112331.1096530-1-hamzamahfooz@linux.microsoft.com Reviewed-by: Jori Koolstra Signed-off-by: Christian Brauner (Amutable) --- fs/namespace.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/namespace.c b/fs/namespace.c index 52ee1e9f4f93..4fcd4eb71c5a 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -6266,9 +6266,6 @@ void __init mnt_init(void) HASH_ZERO, &mp_hash_shift, &mp_hash_mask, 0, 0); - if (!mount_hashtable || !mountpoint_hashtable) - panic("Failed to allocate mount hash table\n"); - kernfs_init(); err = sysfs_init();