Re: [PATCH v2 1/8] rust: fs: add file::Offset type alias
From: Danilo Krummrich
Date: Wed Oct 29 2025 - 11:26:37 EST
On Wed Oct 29, 2025 at 1:49 PM CET, Christian Brauner wrote:
> On Tue, Oct 21, 2025 at 12:26:13AM +0200, Danilo Krummrich wrote:
>> Add a type alias 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>
>> ---
>> Al, Christian: If you are okay with the patch, kindly provide an ACK, so I can
>> take it through the driver-core tree.
>> ---
>
> Reviewed-by: Christian Brauner <brauner@xxxxxxxxxx>
Thanks Christian!
Based on Miguel's suggestion [1] v3 of the series introduces a new type for
file::Offset rather than just a type alias.
Therefore, v3 [2] is significantly different, hence I will wait for you to reply
to v3 before picking up the entire series.
Thanks,
Danilo
[1] https://github.com/Rust-for-Linux/linux/issues/1198
[2] https://lore.kernel.org/lkml/20251022143158.64475-2-dakr@xxxxxxxxxx/