mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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>
This commit is contained in:
@@ -109,8 +109,10 @@ struct ns_common {
|
|||||||
union {
|
union {
|
||||||
struct {
|
struct {
|
||||||
u64 ns_id;
|
u64 ns_id;
|
||||||
struct rb_node ns_tree_node;
|
struct /* per type rbtree and list */ {
|
||||||
struct list_head ns_list_node;
|
struct rb_node ns_tree_node;
|
||||||
|
struct list_head ns_list_node;
|
||||||
|
};
|
||||||
atomic_t __ns_ref_active; /* do not use directly */
|
atomic_t __ns_ref_active; /* do not use directly */
|
||||||
};
|
};
|
||||||
struct rcu_head ns_rcu;
|
struct rcu_head ns_rcu;
|
||||||
|
|||||||
Reference in New Issue
Block a user