[PATCH 0/3] rust: xarray: add `insert` and `reserve`

Tamir Duberstein posted 3 patches 3 months, 1 week ago
There is a newer version of this series
include/linux/xarray.h |   2 +
lib/xarray.c           |  28 ++-
rust/helpers/xarray.c  |   5 +
rust/kernel/xarray.rs  | 460 +++++++++++++++++++++++++++++++++++++++++++++++--
4 files changed, 472 insertions(+), 23 deletions(-)
[PATCH 0/3] rust: xarray: add `insert` and `reserve`
Posted by Tamir Duberstein 3 months, 1 week ago
Please see individual patches.

Signed-off-by: Tamir Duberstein <tamird@gmail.com>
---
Tamir Duberstein (3):
      rust: xarray: use the prelude
      rust: xarray: implement Default for AllocKind
      rust: xarray: add `insert` and `reserve`

 include/linux/xarray.h |   2 +
 lib/xarray.c           |  28 ++-
 rust/helpers/xarray.c  |   5 +
 rust/kernel/xarray.rs  | 460 +++++++++++++++++++++++++++++++++++++++++++++++--
 4 files changed, 472 insertions(+), 23 deletions(-)
---
base-commit: 769e324b66b0d92d04f315d0c45a0f72737c7494
change-id: 20250701-xarray-insert-reserve-bd811ad46a1d

Best regards,
--  
Tamir Duberstein <tamird@gmail.com>
Re: [PATCH 0/3] rust: xarray: add `insert` and `reserve`
Posted by Janne Grunau 2 months, 3 weeks ago
On Tue, Jul 01, 2025 at 12:27:16PM -0400, Tamir Duberstein wrote:
> Please see individual patches.
> 
> Signed-off-by: Tamir Duberstein <tamird@gmail.com>
> ---
> Tamir Duberstein (3):
>       rust: xarray: use the prelude
>       rust: xarray: implement Default for AllocKind
>       rust: xarray: add `insert` and `reserve`
> 
>  include/linux/xarray.h |   2 +
>  lib/xarray.c           |  28 ++-
>  rust/helpers/xarray.c  |   5 +
>  rust/kernel/xarray.rs  | 460 +++++++++++++++++++++++++++++++++++++++++++++++--
>  4 files changed, 472 insertions(+), 23 deletions(-)

thanks, series is tested with the asahi driver and works as expected.
Usage is limited to ::reserve_limits() and ::fill() of the reservation
so only covering a part of the change.

Whole series
Tested-by: Janne Grunau <j@jannau.net>
Reviewed-by: Janne Grunau <j@jannau.net>

Janne