mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
ns: drop custom reference count initialization for initial namespaces
Initial namespaces don't modify their reference count anymore. They remain fixed at one so drop the custom refcount initializations. Link: https://patch.msgid.link/20251110-work-namespace-nstree-fixes-v1-16-e8a9264e0fb9@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
@@ -5986,7 +5986,7 @@ SYSCALL_DEFINE4(listmount, const struct mnt_id_req __user *, req,
|
||||
}
|
||||
|
||||
struct mnt_namespace init_mnt_ns = {
|
||||
.ns = NS_COMMON_INIT(init_mnt_ns, 1),
|
||||
.ns = NS_COMMON_INIT(init_mnt_ns),
|
||||
.user_ns = &init_user_ns,
|
||||
.passive = REFCOUNT_INIT(1),
|
||||
.mounts = RB_ROOT,
|
||||
|
||||
Reference in New Issue
Block a user