Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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/20230131150840.34726-1-chao@kernel.org
Signed-off-by: Chao Yu <chao@kernel.org>
Reviewed-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Chao Yu and committed by
Andrew Morton
b99b2588 0de15575

-3
-1
fs/proc/base.c
··· 699 699 return error; 700 700 701 701 setattr_copy(&nop_mnt_idmap, inode, attr); 702 - mark_inode_dirty(inode); 703 702 return 0; 704 703 } 705 704
-1
fs/proc/generic.c
··· 127 127 return error; 128 128 129 129 setattr_copy(&nop_mnt_idmap, inode, iattr); 130 - mark_inode_dirty(inode); 131 130 132 131 proc_set_user(de, inode->i_uid, inode->i_gid); 133 132 de->mode = inode->i_mode;
-1
fs/proc/proc_sysctl.c
··· 841 841 return error; 842 842 843 843 setattr_copy(&nop_mnt_idmap, inode, attr); 844 - mark_inode_dirty(inode); 845 844 return 0; 846 845 } 847 846