Re: [PATCH v3 07/25] rust: alloc: implement `KVmalloc` allocator
From: Alice Ryhl
Date: Thu Aug 01 2024 - 04:44:27 EST
On Thu, Aug 1, 2024 at 2:07 AM Danilo Krummrich <dakr@xxxxxxxxxx> 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@xxxxxxxxxx>
The nit from vrealloc also applies here, but:
Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>