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:
c007d95
)
pidfs: make inodes mutable
author
Christian Brauner
<brauner@kernel.org>
Wed, 18 Jun 2025 20:53:45 +0000
(22:53 +0200)
committer
Christian Brauner
<brauner@kernel.org>
Thu, 19 Jun 2025 12:28:25 +0000
(14:28 +0200)
Prepare for allowing extended attributes to be set on pidfd inodes by
allowing them to be mutable.
Link:
https://lore.kernel.org/20250618-work-pidfs-persistent-v2-11-98f3456fd552@kernel.org
Reviewed-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/pidfs.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/pidfs.c
b/fs/pidfs.c
index ec375692a710c805bcb3011316061d92752e8439..df5bc69ea1c0bbbe3002f4dfd6bd65f4d13c8138 100644
(file)
--- a/
fs/pidfs.c
+++ b/
fs/pidfs.c
@@
-827,6
+827,8
@@
static int pidfs_init_inode(struct inode *inode, void *data)
inode->i_private = data;
inode->i_flags |= S_PRIVATE | S_ANON_INODE;
+ /* We allow to set xattrs. */
+ inode->i_flags &= ~S_IMMUTABLE;
inode->i_mode |= S_IRWXU;
inode->i_op = &pidfs_inode_operations;
inode->i_fop = &pidfs_file_operations;