Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+6 -5
+6 -5
include/linux/pid.h
··· 52 52 struct pid_namespace *ns; 53 53 }; 54 54 55 - struct pid 56 - { 55 + struct pid { 57 56 refcount_t count; 58 57 unsigned int level; 59 58 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 + }; 63 64 /* lists of tasks that use this pid */ 64 65 struct hlist_head tasks[PIDTYPE_MAX]; 65 66 struct hlist_head inodes;