Re: [PATCH v3 01/10] rust: fs: add new type file::Offset

From: Miguel Ojeda

Date: Wed Oct 22 2025 - 10:42:54 EST


On Wed, Oct 22, 2025 at 4:32 PM Danilo Krummrich <dakr@xxxxxxxxxx> wrote:
>
> Add a new type for file offsets, i.e. bindings::loff_t. Trying to avoid
> using raw bindings types, this seems to be the better alternative
> compared to just using i64.
>
> Cc: Alexander Viro <viro@xxxxxxxxxxxxxxxxxx>
> Cc: Christian Brauner <brauner@xxxxxxxxxx>
> Cc: Jan Kara <jack@xxxxxxx>
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>

Thanks a lot for this!

Suggested-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
Link: https://github.com/Rust-for-Linux/linux/issues/1198

Cheers,
Miguel