Skip to content

Commit c007d95

Browse files
committed
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>
1 parent d718249 commit c007d95

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

fs/libfs.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2162,7 +2162,6 @@ static struct dentry *prepare_anon_dentry(struct dentry **stashed,
21622162

21632163
/* Notice when this is changed. */
21642164
WARN_ON_ONCE(!S_ISREG(inode->i_mode));
2165-
WARN_ON_ONCE(!IS_IMMUTABLE(inode));
21662165

21672166
dentry = d_alloc_anon(sb);
21682167
if (!dentry) {

0 commit comments

Comments
 (0)