Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ns: make is_initial_namespace() argument const

We don't modify the data structure at all so pass it as const.

Link: https://patch.msgid.link/20251110-work-namespace-nstree-fixes-v1-8-e8a9264e0fb9@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>

+1 -1
+1 -1
include/linux/ns_common.h
··· 13 13 void __ns_common_free(struct ns_common *ns); 14 14 struct ns_common *__must_check ns_owner(struct ns_common *ns); 15 15 16 - static __always_inline bool is_initial_namespace(struct ns_common *ns) 16 + static __always_inline bool is_initial_namespace(const struct ns_common *ns) 17 17 { 18 18 VFS_WARN_ON_ONCE(ns->inum == 0); 19 19 return unlikely(in_range(ns->inum, MNT_NS_INIT_INO,