[PATCH v2 0/4] rust: xarray: abstract xa_alloc and xa_alloc_cyclic

Onur Özkan posted 4 patches 4 months ago
Documentation/gpu/nova/core/todo.rst |   8 ---
rust/kernel/xarray.rs                | 101 +++++++++++++++++++++++++--
2 files changed, 96 insertions(+), 13 deletions(-)
[PATCH v2 0/4] rust: xarray: abstract xa_alloc and xa_alloc_cyclic
Posted by Onur Özkan 4 months ago
Second version of xa_alloc and xa_alloc_cyclic abstraction
patch series. See the initial version at [1].

[1]: https://lore.kernel.org/all/DDCV43KW9OGL.27I8HP4TSTQ6N@kernel.org/T/#u

This series will also be sent to linux-mm@kvack.org which was not done in
the previous submission.

Changes in v2:
  - Moved the pointer check into the constructor function.
  - Minor updates on the function doc-comments.
  - Minor updates on xa_alloc and xa_alloc_cyclic commit descriptions.
  - Replaced bindings::xa_limit with Range<u32> on xa_alloc_cyclic and
    xa_alloc.
  - Updated how alloc_cyclic handles the next pointer (it no longer
    requires a mutable reference)

Onur Özkan (4):
  rust: xarray: move pointer check into `XArray::new`
  rust: xarray: abstract `xa_alloc`
  rust: xarray: abstract `xa_alloc_cyclic`
  remove completed task from nova-core task list

 Documentation/gpu/nova/core/todo.rst |   8 ---
 rust/kernel/xarray.rs                | 101 +++++++++++++++++++++++++--
 2 files changed, 96 insertions(+), 13 deletions(-)

--
2.51.0