diff options
author | Steven Rostedt (Google) <[email protected]> | 2024-01-03 20:52:49 -0500 |
---|---|---|
committer | Steven Rostedt (Google) <[email protected]> | 2024-01-03 21:53:25 -0500 |
commit | 493ec81a8fb8e4ada6f223b8b73791a1280d4774 (patch) | |
tree | 0b72ae103535141f26bd053c27c2dd42fa1e998a /scripts/gdb/linux/utils.py | |
parent | b0f7e2d739b4aac131ea1662d086a07775097b05 (diff) |
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/[email protected]
Cc: Masami Hiramatsu <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Ajay Kaher <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Christian Brauner <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions