mount: remove redundant panic() in mnt_init()

Since at least as far back as commit 0818bf27c0 ("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 <hamzamahfooz@linux.microsoft.com>
Link: https://patch.msgid.link/20260720112331.1096530-1-hamzamahfooz@linux.microsoft.com
Reviewed-by: Jori Koolstra <jkoolstra@xs4all.nl>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
This commit is contained in:
Hamza Mahfooz 2026-07-20 07:23:31 -04:00 committed by Christian Brauner
parent 0ae44a2083
commit 083e8742e3
No known key found for this signature in database
GPG Key ID: 91C61BC06578DCA2

View File

@ -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();