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:
Christian Brauner 2025-06-18 22:53:38 +02:00
parent 23cdee615c
commit 75215c9725

View File

@ -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;