diff options
author | 2024-06-02 14:25:46 -0400 | |
---|---|---|
committer | 2024-11-03 01:28:06 -0500 | |
commit | 4dd53b84ff23424e2fe1e902decacdb49303e3d3 (patch) | |
tree | 347e4a10859fa55d60f3442f55a6503cbbab7d12 /rust/kernel/alloc | |
parent | timerfd: switch to CLASS(fd) (diff) | |
download | wireguard-linux-4dd53b84ff23424e2fe1e902decacdb49303e3d3.tar.xz wireguard-linux-4dd53b84ff23424e2fe1e902decacdb49303e3d3.zip |
get rid of perf_fget_light(), convert kernel/events/core.c to CLASS(fd)
Lift fdget() and fdput() out of perf_fget_light(), turning it into
is_perf_file(struct fd f). The life gets easier in both callers
if we do fdget() unconditionally, including the case when we are
given -1 instead of a descriptor - that avoids a reassignment in
perf_event_open(2) and it avoids a nasty temptation in _perf_ioctl()
where we must *not* lift output_event out of scope for output.
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions