linux/fs/tracefs
Steven Rostedt (Google) e109deadb7 eventfs: Have eventfs_iterate() stop immediately if ei->is_freed is set
If ei->is_freed is set in eventfs_iterate(), it means that the directory
that is being iterated on is in the process of being freed. Just exit the
loop immediately when that is ever detected, and separate out the return
of the entry->callback() from ei->is_freed.

Link: https://lore.kernel.org/linux-trace-kernel/20240104220048.016261289@goodmis.org

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
2024-01-04 17:11:57 -05:00
..
event_inode.c eventfs: Have eventfs_iterate() stop immediately if ei->is_freed is set 2024-01-04 17:11:57 -05:00
inode.c tracefs/eventfs: Use root and instance inodes as default ownership 2024-01-03 21:53:55 -05:00
internal.h tracefs/eventfs: Use root and instance inodes as default ownership 2024-01-03 21:53:55 -05:00
Makefile eventfs: Implement eventfs dir creation functions 2023-07-30 18:13:33 -04:00