From: Hamza Mahfooz Date: Mon, 20 Jul 2026 11:23:31 +0000 (-0400) Subject: mount: remove redundant panic() in mnt_init() X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=083e8742e301a24f0c458696b45b481345888b85;p=thirdparty%2Flinux.git 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) --- 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();