Re: [PATCH v3 07/25] rust: alloc: implement `KVmalloc` allocator

Alice Ryhl
2024-08-01T08:43:58Z

On Thu, Aug 1, 2024 at 2:07 AM Danilo Krummrich <dakr@kernel.org> wrote:
>
> Implement `Allocator` for `KVmalloc`, an `Allocator` that tries to
> allocate memory wth `kmalloc` first and, on failure, falls back to
> `vmalloc`.
>
> All memory allocations made with `KVmalloc` end up in
> `kvrealloc_noprof()`; all frees in `kvfree()`.
>
> Signed-off-by: Danilo Krummrich <dakr@kernel.org>

The nit from vrealloc also applies here, but:

Reviewed-by: Alice Ryhl <aliceryhl@google.com>