mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-04 04:37:39 -04:00
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>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user