Re: [PATCH v2 2/2] io_uring: add support for ftruncate

Jens Axboe
2024-01-23T15:36:46Z

On 1/23/24 8:01 AM, Gabriel Krisman Bertazi wrote:
>> +struct io_ftrunc {
>> + struct file *file;
>
> This is unused in the rest of the patch.

It has to be there, see io_kiocb and how file is first and these are
unioned with that. See the note in tne io_kiocb definition in
io_uring_types.h.

--
Jens Axboe