From: Christian Brauner Date: Wed, 29 Oct 2025 12:20:25 +0000 (+0100) Subject: ns: use anonymous struct to group list member X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8895d2a3dbf49f23622ab8da9fb3909826edd6dc;p=thirdparty%2Flinux.git 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 Signed-off-by: Christian Brauner --- diff --git a/include/linux/ns_common.h b/include/linux/ns_common.h index bdd0df15ad9cb..32463203c8244 100644 --- a/include/linux/ns_common.h +++ b/include/linux/ns_common.h @@ -109,8 +109,10 @@ struct ns_common { union { struct { u64 ns_id; - struct rb_node ns_tree_node; - struct list_head ns_list_node; + struct /* per type rbtree and list */ { + struct rb_node ns_tree_node; + struct list_head ns_list_node; + }; atomic_t __ns_ref_active; /* do not use directly */ }; struct rcu_head ns_rcu;