aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2025-06-18 22:53:44 +0200
committerChristian Brauner <brauner@kernel.org>2025-06-19 14:28:25 +0200
commitc007d95221397eda24e7d6b4ac5a5d699ea2f1ca (patch)
tree5f18939448044c8cd406e1f73bde001d2bca27dc
parentpidfs: remove pidfs_pid_valid() (diff)
downloadwireguard-linux-c007d95221397eda24e7d6b4ac5a5d699ea2f1ca.tar.xz
wireguard-linux-c007d95221397eda24e7d6b4ac5a5d699ea2f1ca.zip
libfs: prepare to allow for non-immutable pidfd inodes
Allow for S_IMMUTABLE to be stripped so that we can support xattrs. Link: https://lore.kernel.org/20250618-work-pidfs-persistent-v2-10-98f3456fd552@kernel.org Reviewed-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com> Signed-off-by: Christian Brauner <brauner@kernel.org>
-rw-r--r--fs/libfs.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/libfs.c b/fs/libfs.c
index 997d3a363ce6..c5b520df9032 100644
--- a/fs/libfs.c
+++ b/fs/libfs.c
@@ -2162,7 +2162,6 @@ static struct dentry *prepare_anon_dentry(struct dentry **stashed,
/* Notice when this is changed. */
WARN_ON_ONCE(!S_ISREG(inode->i_mode));
- WARN_ON_ONCE(!IS_IMMUTABLE(inode));
dentry = d_alloc_anon(sb);
if (!dentry) {