diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2024-02-09 14:57:43 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2025-09-15 21:08:33 -0400 |
commit | 180a9cc3fd6a020746fbd7f97b9b62295a325fd2 (patch) | |
tree | 8532935589ae9bdb08fca6ac73b27a505463bcbd /rust/helpers/pci.c | |
parent | ca97d6c60b1d1dff519a7e3dd86708304e657365 (diff) |
make it easier to catch those who try to modify ->d_name
Turn d_name into an anon union of const struct qstr d_name with
struct qstr __d_name. Very few places need to modify it (all
in fs/dcache.c); those are switched to use of ->__d_name.
Note that ->d_name can actually change under you unless you have
the right locking environment; this const just prohibits accidentally
doing stores without being easily spotted.
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'rust/helpers/pci.c')
0 files changed, 0 insertions, 0 deletions