]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mnt: simplify ns_common_init() handling
authorChristian Brauner <brauner@kernel.org>
Wed, 17 Sep 2025 10:28:05 +0000 (12:28 +0200)
committerChristian Brauner <brauner@kernel.org>
Fri, 19 Sep 2025 12:26:18 +0000 (14:26 +0200)
commit86cdbae5c61c6b8c0a2adc78dbbb0314b3254a9c
tree5f13878481488bd19369393fcd2814f9ea0d3609
parentcc47f434271ba90c18c16e0bba360df38a8bc954
mnt: simplify ns_common_init() handling

Assign the reserved MNT_NS_ANON_INO sentinel to anonymous mount
namespaces and cleanup the initial mount ns allocation. This is just a
preparatory patch and the ns->inum check in ns_common_init() will be
dropped in the next patch.

Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namespace.c
kernel/nscommon.c