From: Christian Brauner Date: Wed, 18 Jun 2025 20:53:44 +0000 (+0200) Subject: libfs: prepare to allow for non-immutable pidfd inodes X-Git-Tag: block-6.17-20250808~55^2~5^2~6 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=c007d95221397eda24e7d6b4ac5a5d699ea2f1ca;p=linux-block.git 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 Signed-off-by: Christian Brauner --- 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) {