eventfs: Have the inodes all for files and directories all be the same
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 16 Jan 2024 21:12:18 +0000 (16:12 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 16 Jan 2024 21:27:47 +0000 (16:27 -0500)
commit53c41052ba3121761e6f62a813961164532a214f
tree3bca956bb1e60bd569a6a614398411c19a8acfb0
parent1de94b52d5e8d8b32f0252f14fad1f1edc2e71f1
eventfs: Have the inodes all for files and directories all be the same

The dentries and inodes are created in the readdir for the sole purpose of
getting a consistent inode number. Linus stated that is unnecessary, and
that all inodes can have the same inode number. For a virtual file system
they are pretty meaningless.

Instead use a single unique inode number for all files and one for all
directories.

Link: https://lore.kernel.org/all/20240116133753.2808d45e@gandalf.local.home/
Link: https://lore.kernel.org/linux-trace-kernel/20240116211353.412180363@goodmis.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Ajay Kaher <ajay.kaher@broadcom.com>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
fs/tracefs/event_inode.c