aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/generic.c
diff options
context:
space:
mode:
authorChao Yu <[email protected]>2023-01-31 15:08:40 +0000
committerAndrew Morton <[email protected]>2023-04-08 20:45:36 +0000
commitb99b258899d7a59e60169f402e5bce6b8272ce97 (patch)
treea6cd6ff38cf9c2caadf78f805f99bde296edb545 /fs/proc/generic.c
parentia64: salinfo: placate defined-but-not-used warning (diff)
downloadkernel-b99b258899d7a59e60169f402e5bce6b8272ce97.tar.gz
kernel-b99b258899d7a59e60169f402e5bce6b8272ce97.zip
proc: remove mark_inode_dirty() in .setattr()
procfs' .setattr() has updated i_uid, i_gid and i_mode into proc dirent, we don't need to call mark_inode_dirty() for delayed update, remove it. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Chao Yu <[email protected]> Reviewed-by: Alexey Dobriyan <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'fs/proc/generic.c')
-rw-r--r--fs/proc/generic.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/proc/generic.c b/fs/proc/generic.c
index 8379593fa4bb..42ae38ff6e7e 100644
--- a/fs/proc/generic.c
+++ b/fs/proc/generic.c
@@ -127,7 +127,6 @@ static int proc_notify_change(struct mnt_idmap *idmap,
return error;
setattr_copy(&nop_mnt_idmap, inode, iattr);
- mark_inode_dirty(inode);
proc_set_user(de, inode->i_uid, inode->i_gid);
de->mode = inode->i_mode;