On Tue, Jul 30, 2024 at 01:15:50AM GMT, viro@xxxxxxxxxx wrote: > From: Al Viro <viro@xxxxxxxxxxxxxxxxxx> > > 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. > > Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx> > --- Reviewed-by: Christian Brauner <brauner@xxxxxxxxxx>