mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-03-10 00:00:04 +03:00
Fix krealloc() alignment
bcachefs assumes kmalloc & krealloc give out allocations that are naturally aligned, like the kernel allocators do. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
parent
ce906d661e
commit
d340c4f4a8
@ -40,7 +40,7 @@ static inline void *krealloc(void *old, size_t size, gfp_t flags)
|
||||
|
||||
run_shrinkers();
|
||||
|
||||
new = malloc(size);
|
||||
new = kmalloc(size, flags);
|
||||
if (!new)
|
||||
return NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user