From 28d6f8e1f875929ce59405c0b04fa0a5ec700a4e Mon Sep 17 00:00:00 2001 From: Rafael Aquini Date: Mon, 11 May 2026 10:39:35 -0400 Subject: [PATCH] pidfs: use anon_inode_setattr() JIRA: https://issues.redhat.com/browse/RHEL-171616 commit c83b9024966090fe0df92aab16975b8d00089e1f Author: Christian Brauner Date: Mon Apr 7 11:54:18 2025 +0200 pidfs: use anon_inode_setattr() So far pidfs did use it's own version. Just use the generic version. We use our own wrappers because we're going to be implementing properties soon. Link: https://lore.kernel.org/20250407-work-anon_inode-v1-4-53a44c20d44e@kernel.org Reviewed-by: Jeff Layton Signed-off-by: Christian Brauner Signed-off-by: Rafael Aquini diff --git a/fs/pidfs.c b/fs/pidfs.c index 27d6d9328b57..d6c0ed79ea24 100644 --- a/fs/pidfs.c +++ b/fs/pidfs.c @@ -568,7 +568,7 @@ static struct vfsmount *pidfs_mnt __ro_after_init; static int pidfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *attr) { - return -EOPNOTSUPP; + return anon_inode_setattr(idmap, dentry, attr); } static int pidfs_getattr(struct mnt_idmap *idmap, const struct path *path, -- 2.50.1 (Apple Git-155)