diff options
author | Steven Rostedt (Google) <rostedt@goodmis.org> | 2024-01-03 20:52:49 -0500 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2024-01-03 21:53:25 -0500 |
commit | 493ec81a8fb8e4ada6f223b8b73791a1280d4774 (patch) | |
tree | 0b72ae103535141f26bd053c27c2dd42fa1e998a /scripts/gdb/linux/tasks.py | |
parent | b0f7e2d739b4aac131ea1662d086a07775097b05 (diff) | |
download | linux-493ec81a8fb8e4ada6f223b8b73791a1280d4774.tar.gz linux-493ec81a8fb8e4ada6f223b8b73791a1280d4774.tar.bz2 linux-493ec81a8fb8e4ada6f223b8b73791a1280d4774.zip |
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>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions