diff options
| author | 2026-04-27 14:19:28 -0400 | |
|---|---|---|
| committer | 2026-06-05 00:34:54 -0400 | |
| commit | 4a810147a07535e63a7c1fbb90975012e8d57f60 (patch) | |
| tree | 758d6da17695bbc6027814e84db3ac7adf967e21 /tools/perf/scripts/python | |
| parent | VFS: use wait_var_event for waiting in d_alloc_parallel() (diff) | |
alloc_path_pseudo(): make sure we don't end up with NORCU dentries for directories
A lot of places relies upon directories never having NORCU dentries;
currently that property holds, but the proof is not straightforward
and rather brittle.
It's better to have that verified in the sole caller of d_alloc_pseudo(),
so that any future bugs in that direction were caught early.
That way we can be sure that
* current directory of any process is not NORCU
* root directory of any process is not NORCU
* starting point of any LOOKUP_RCU pathwalk is not NORCU
* dget_parent() can rely upon ->d_parent not being NORCU
* d_walk() and is_subdir() can rely upon the same
* alloc_file_pseudo() won't create multiple aliases for a directory
without having to go through a convoluted audit.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
