]> Gentwo Git Trees - linux/.git/commit
convert tracefs
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 9 May 2024 03:51:40 +0000 (23:51 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 16 Nov 2025 06:35:03 +0000 (01:35 -0500)
commit50d7fd3c3a3e6e14f618f28bd16ef7a9cfd02e90
tree4cb92571d88e70c64476e15e489ce2535722eaa5
parenteec876df5e7647bca03b72e0bcecb2e8bf0390a5
convert tracefs

A mix of persistent and non-persistent dentries in there.  Strictly
speaking, no need for kill_litter_super() anyway - it pins an internal
mount whenever a persistent dentry is created, so at fs shutdown time
there won't be any to deal with.

However, let's make it explicit - replace d_instantiate() with
d_make_persistent() + dput() (the latter in tracefs_end_creating(),
where it folds with inode_unlock() into simple_done_creating())
for dentries we want persistent and have d_make_discardable() done
either by simple_recursive_removal() (used by tracefs_remove())
or explicitly in eventfs_remove_events_dir().

Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/tracefs/event_inode.c
fs/tracefs/inode.c