linux/fs/tracefs
Steven Rostedt (Google) 493ec81a8f eventfs: Stop using dcache_readdir() for getdents()
The eventfs creates dynamically allocated dentries and inodes. Using the
dcache_readdir() logic for its own directory lookups requires hiding the
cursor of the dcache logic and playing games to allow the dcache_readdir()
to still have access to the cursor while the eventfs saved what it created
and what it needs to release.

Instead, just have eventfs have its own iterate_shared callback function
that will fill in the dent entries. This simplifies the code quite a bit.

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

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Ajay Kaher <akaher@vmware.com>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Christian Brauner <brauner@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
2024-01-03 21:53:25 -05:00
..
event_inode.c eventfs: Stop using dcache_readdir() for getdents() 2024-01-03 21:53:25 -05:00
inode.c tracefs: Check for dentry->d_inode exists in set_gid() 2024-01-02 15:20:22 -05:00
internal.h eventfs: Fix bitwise fields for "is_events" 2024-01-02 15:20:44 -05:00
Makefile eventfs: Implement eventfs dir creation functions 2023-07-30 18:13:33 -04:00