Re: [PATCH v2 1/4] file: add fput and file_ref_put routines optimized for use when closing a fd

From: Mateusz Guzik
Date: Tue Mar 04 2025 - 13:51:33 EST


On Tue, Mar 4, 2025 at 7:35 PM Mateusz Guzik <mjguzik@xxxxxxxxx> wrote:

> +void fput_close_sync(struct file *file)
> +{
> + if (unlikely(file_ref_put_close(&file->f_ref)))
> + __fput(file);
> +}

this of course should be: *likely*

--
Mateusz Guzik <mjguzik gmail.com>