linux/fs/tracefs
Steven Rostedt (Google) b0f7e2d739 eventfs: Remove "lookup" parameter from create_dir/file_dentry()
The "lookup" parameter is a way to differentiate the call to
create_file/dir_dentry() from when it's just a lookup (no need to up the
dentry refcount) and accessed via a readdir (need to up the refcount).

But reality, it just makes the code more complex. Just up the refcount and
let the caller decide to dput() the result or not.

Link: https://lore.kernel.org/linux-trace-kernel/20240103102553.17a19cea@gandalf.local.home
Link: https://lore.kernel.org/linux-trace-kernel/20240104015435.517502710@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: Remove "lookup" parameter from create_dir/file_dentry() 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