summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHamza Mahfooz <hamzamahfooz@linux.microsoft.com>2026-07-20 07:23:31 -0400
committerChristian Brauner <brauner@kernel.org>2026-07-22 17:57:45 +0200
commit083e8742e301a24f0c458696b45b481345888b85 (patch)
tree04db7c1743a60b64f09cc54b6e3961f96613a9e5
parent0ae44a20835e5cf37d03a83e70c92e92deda3703 (diff)
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 <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>
-rw-r--r--fs/namespace.c3
1 files changed, 0 insertions, 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();