projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22bdf3d
)
pidfs: use anon_inode_setattr()
author
Christian Brauner
<brauner@kernel.org>
Mon, 7 Apr 2025 09:54:18 +0000
(11:54 +0200)
committer
Christian Brauner
<brauner@kernel.org>
Mon, 7 Apr 2025 14:19:02 +0000
(16:19 +0200)
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 <jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/pidfs.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/pidfs.c
b/fs/pidfs.c
index 809c3393b6a3ca9972562693c38014290d4a0671..10b4ee454ccab3b0ab604ed9ae24da08a1be0cba 100644
(file)
--- a/
fs/pidfs.c
+++ b/
fs/pidfs.c
@@
-569,7
+569,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,