linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] rust: xarray: add `insert` and `reserve`
@ 2025-07-13 12:05 Tamir Duberstein
  2025-07-13 12:05 ` [PATCH v2 1/3] rust: xarray: use the prelude Tamir Duberstein
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Tamir Duberstein @ 2025-07-13 12:05 UTC (permalink / raw)
  To: Andreas Hindborg, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
	Björn Roy Baron, Benno Lossin, Alice Ryhl, Trevor Gross,
	Danilo Krummrich, Matthew Wilcox, Andrew Morton
  Cc: rust-for-linux, linux-kernel, linux-fsdevel, linux-mm,
	Daniel Almeida, Tamir Duberstein, Janne Grunau

The reservation API is used by asahi; currently they use their own
abstractions but intend to use these when available.

Rust Binder intends to use the reservation API as well.

Daniel Almeida mentions a use case for `insert_limit`, but didn't name
it specifically.

Signed-off-by: Tamir Duberstein <tamird@gmail.com>
---
Changes in v2:
- Explain the need to disambiguate `Iterator::chain`. (Boqun Feng)
- Mention what `Guard::alloc` does in the doc comment. (Miguel Ojeda)
- Include new APIs in the module-level example. (Miguel Ojeda)
- Mention users of these APIs in the cover letter.
- Link to v1: https://lore.kernel.org/r/20250701-xarray-insert-reserve-v1-0-25df2b0d706a@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  | 533 ++++++++++++++++++++++++++++++++++++++++++++++---
 4 files changed, 536 insertions(+), 32 deletions(-)
---
base-commit: 2009a2d5696944d85c34d75e691a6f3884e787c0
change-id: 20250701-xarray-insert-reserve-bd811ad46a1d

Best regards,
--  
Tamir Duberstein <tamird@gmail.com>


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2025-08-13  8:00 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-13 12:05 [PATCH v2 0/3] rust: xarray: add `insert` and `reserve` Tamir Duberstein
2025-07-13 12:05 ` [PATCH v2 1/3] rust: xarray: use the prelude Tamir Duberstein
2025-08-11 11:06   ` Andreas Hindborg
2025-07-13 12:05 ` [PATCH v2 2/3] rust: xarray: implement Default for AllocKind Tamir Duberstein
2025-08-11 11:07   ` Andreas Hindborg
2025-07-13 12:05 ` [PATCH v2 3/3] rust: xarray: add `insert` and `reserve` Tamir Duberstein
2025-08-11 12:56   ` Beata Michalska
2025-08-11 13:09     ` Tamir Duberstein
2025-08-11 14:34       ` Beata Michalska
2025-08-11 18:02         ` Tamir Duberstein
2025-08-13  8:00           ` Beata Michalska
2025-08-11 13:28   ` Andreas Hindborg
2025-08-11 13:42     ` Tamir Duberstein
2025-08-11 13:56       ` Miguel Ojeda
2025-07-23  1:38 ` [PATCH v2 0/3] " Daniel Almeida
2025-07-24 18:50 ` Daniel Almeida

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).