Skip to content

Commit 75215c9

Browse files
committed
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>
1 parent 23cdee6 commit 75215c9

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

include/linux/pid.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,15 @@ struct upid {
5252
struct pid_namespace *ns;
5353
};
5454

55-
struct pid
56-
{
55+
struct pid {
5756
refcount_t count;
5857
unsigned int level;
5958
spinlock_t lock;
60-
struct dentry *stashed;
61-
u64 ino;
62-
struct rb_node pidfs_node;
59+
struct {
60+
u64 ino;
61+
struct rb_node pidfs_node;
62+
struct dentry *stashed;
63+
};
6364
/* lists of tasks that use this pid */
6465
struct hlist_head tasks[PIDTYPE_MAX];
6566
struct hlist_head inodes;

0 commit comments

Comments
 (0)