projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23cdee6
)
pidfs: move to anonymous struct
author
Christian Brauner
<brauner@kernel.org>
Wed, 18 Jun 2025 20:53:38 +0000
(22:53 +0200)
committer
Christian Brauner
<brauner@kernel.org>
Thu, 19 Jun 2025 12:28:24 +0000
(14:28 +0200)
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>
include/linux/pid.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/pid.h
b/include/linux/pid.h
index 453ae6d8a68d75e5baf638d84b57d2de95159586..00646a692dd451971bb414826560ebe6f6ad9a6d 100644
(file)
--- a/
include/linux/pid.h
+++ b/
include/linux/pid.h
@@
-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;