mirror of
https://github.com/torvalds/linux.git
synced 2026-03-13 23:46:14 +01: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:
parent
3a18f80918
commit
8895d2a3db
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue