mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 22:03:17 +01:00
Implement `Allocator` for `Vmalloc`, the kernel's virtually contiguous allocator, typically used for larger objects, (much) larger than page size. All memory allocations made with `Vmalloc` end up in `vrealloc()`. Reviewed-by: Alice Ryhl <[email protected]> Reviewed-by: Benno Lossin <[email protected]> Reviewed-by: Gary Guo <[email protected]> Signed-off-by: Danilo Krummrich <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
10 lines
203 B
C
10 lines
203 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <linux/vmalloc.h>
|
|
|
|
void * __must_check __realloc_size(2)
|
|
rust_helper_vrealloc(const void *p, size_t size, gfp_t flags)
|
|
{
|
|
return vrealloc(p, size, flags);
|
|
}
|