diff options
| author | Al Viro <[email protected]> | 2024-05-31 20:34:25 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2024-08-13 02:01:15 +0000 |
| commit | de12c3391bce10504c0e7bd767516c74110cfce1 (patch) | |
| tree | 6434fad961912914e5213298f50d4f77cb2f9694 /drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c | |
| parent | struct fd: representation change (diff) | |
| download | kernel-de12c3391bce10504c0e7bd767516c74110cfce1.tar.gz kernel-de12c3391bce10504c0e7bd767516c74110cfce1.zip | |
add struct fd constructors, get rid of __to_fd()
Make __fdget() et.al. return struct fd directly.
New helpers: BORROWED_FD(file) and CLONED_FD(file), for
borrowed and cloned file references resp.
NOTE: this might need tuning; in particular, inline on
__fget_light() is there to keep the code generation same as
before - we probably want to keep it inlined in fdget() et.al.
(especially so in fdget_pos()), but that needs profiling.
Reviewed-by: Christian Brauner <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c')
0 files changed, 0 insertions, 0 deletions
