]> git.baikalelectronics.ru Git - kernel.git/commit
proc: Clear the pieces of proc_inode that proc_evict_inode cares about
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 20 Feb 2020 17:17:28 +0000 (11:17 -0600)
committerEric W. Biederman <ebiederm@xmission.com>
Mon, 24 Feb 2020 15:51:25 +0000 (09:51 -0600)
commit3e0887acb5f4dbf3ec6f011ec535de0cc65d7191
tree929506f14014c7c827eeb46c8e9aa3d6368f7473
parent66092051b0e1f622f7374bd23d455bb5466d9215
proc: Clear the pieces of proc_inode that proc_evict_inode cares about

This just keeps everything tidier, and allows for using flags like
SLAB_TYPESAFE_BY_RCU where slabs are not always cleared before reuse.
I don't see reuse without reinitializing happening with the proc_inode
but I had a false alarm while reworking flushing of proc dentries and
indoes when a process dies that caused me to tidy this up.

The code is a little easier to follow and reason about this
way so I figured the changes might as well be kept.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/proc/inode.c