Re: [PATCH 1/3] rust: fs: add a new type for file::Offset
From: Christian Brauner
Date: Wed Nov 05 2025 - 05:59:48 EST
On Wed, Nov 05, 2025 at 01:22:48AM +0100, Danilo Krummrich wrote:
> Replace the existing file::Offset type alias with a new type.
>
> Compared to a type alias, a new type allows for more fine grained
> control over the operations that (semantically) make sense for a
> specific type.
>
> Cc: Alexander Viro <viro@xxxxxxxxxxxxxxxxxx>
> Cc: Christian Brauner <brauner@xxxxxxxxxx>
> Cc: Jan Kara <jack@xxxxxxx>
> Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> Reviewed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
> Suggested-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
> Link: https://github.com/Rust-for-Linux/linux/issues/1198
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
> ---
What's the base for this?
If it's stuff that belongs to fs/ I'd prefer if it always uses a stable
-rc* version as base where possible.