mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 03:24:19 +02:00
pidfs: move to anonymous struct
Move the pidfs entries to an anonymous struct. Link: https://lore.kernel.org/20250618-work-pidfs-persistent-v2-4-98f3456fd552@kernel.org Reviewed-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
23cdee615c
commit
75215c9725
|
|
@ -52,14 +52,15 @@ struct upid {
|
|||
struct pid_namespace *ns;
|
||||
};
|
||||
|
||||
struct pid
|
||||
{
|
||||
struct pid {
|
||||
refcount_t count;
|
||||
unsigned int level;
|
||||
spinlock_t lock;
|
||||
struct dentry *stashed;
|
||||
u64 ino;
|
||||
struct rb_node pidfs_node;
|
||||
struct {
|
||||
u64 ino;
|
||||
struct rb_node pidfs_node;
|
||||
struct dentry *stashed;
|
||||
};
|
||||
/* lists of tasks that use this pid */
|
||||
struct hlist_head tasks[PIDTYPE_MAX];
|
||||
struct hlist_head inodes;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user