]> Gentwo Git Trees - linux/.git/commit
ns: don't increment or decrement initial namespaces
authorChristian Brauner <brauner@kernel.org>
Sun, 9 Nov 2025 21:11:23 +0000 (22:11 +0100)
committerChristian Brauner <brauner@kernel.org>
Mon, 10 Nov 2025 09:20:53 +0000 (10:20 +0100)
commit7cd3d204412b0584df38fd7be20002137f34721a
tree845eb7be0f559772a9ae58c6bfb8944459c3fd9d
parent0355dcae2d157d95f234a56b540ab110350fd022
ns: don't increment or decrement initial namespaces

There's no need to bump the active reference counts of initial
namespaces as they're always active and can simply remain at 1.

Link: https://patch.msgid.link/20251109-namespace-6-19-fixes-v1-2-ae8a4ad5a3b3@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/linux/ns_common.h
kernel/nscommon.c