diff options
author | Danilo Krummrich <dakr@kernel.org> | 2024-07-17 16:59:23 +0200 |
---|---|---|
committer | Danilo Krummrich <dakr@kernel.org> | 2024-08-13 16:04:19 +0200 |
commit | 590728e3eb28171682aece2cf1d6209024085271 (patch) | |
tree | 4f373c98699a8d47a2fb076e101e888f90ea444e /fs/dax.c | |
parent | b54176537b79224f4591018610015aab700853ad (diff) |
mm: vmalloc: implement vrealloc()
Implement vrealloc() analogous to krealloc().
Currently, krealloc() requires the caller to pass the size of the
previous memory allocation, which, instead, should be self-contained.
We attempt to fix this in a subsequent patch which, in order to do so,
requires vrealloc().
Besides that, we need realloc() functions for kernel allocators in Rust
too. With `Vec` potentially growing (and shrinking) data structures are
rather common.
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'fs/dax.c')
0 files changed, 0 insertions, 0 deletions