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: use anonymous struct to group list member

Make it easier to spot that they belong together conceptually.

Link: https://patch.msgid.link/20251029-work-namespace-nstree-listns-v4-12-2e6f823ebdc0@kernel.org
Tested-by: syzbot@syzkaller.appspotmail.com
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>

+4 -2
+4 -2
include/linux/ns_common.h
··· 109 109 union { 110 110 struct { 111 111 u64 ns_id; 112 - struct rb_node ns_tree_node; 113 - struct list_head ns_list_node; 112 + struct /* per type rbtree and list */ { 113 + struct rb_node ns_tree_node; 114 + struct list_head ns_list_node; 115 + }; 114 116 atomic_t __ns_ref_active; /* do not use directly */ 115 117 }; 116 118 struct rcu_head ns_rcu;