diff options
author | 2024-07-14 21:49:04 -0400 | |
---|---|---|
committer | 2024-11-03 01:28:06 -0500 | |
commit | f302edb9d822804e72df3fa6ba270234050c678b (patch) | |
tree | 01ba6ce53daa3bb3a604fdef197802a7b58fa3a2 /rust/kernel/alloc/allocator.rs | |
parent | get rid of perf_fget_light(), convert kernel/events/core.c to CLASS(fd) (diff) | |
download | wireguard-linux-f302edb9d822804e72df3fa6ba270234050c678b.tar.xz wireguard-linux-f302edb9d822804e72df3fa6ba270234050c678b.zip |
switch netlink_getsockbyfilp() to taking descriptor
the only call site (in do_mq_notify()) obtains the argument
from an immediately preceding fdget() and it is immediately
followed by fdput(); might as well just replace it with
a variant that would take a descriptor instead of struct file *
and have file lookups handled inside that function.
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'rust/kernel/alloc/allocator.rs')
0 files changed, 0 insertions, 0 deletions