diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-16 19:44:48 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 11:46:52 -0500 |
commit | a58a6a58f5ad55aa1f5c54598c44f1d9938c1793 (patch) | |
tree | 01c129d85febc80b3057b91f07cc34826bd4225a /fs/bcachefs/darray.h | |
parent | 73ab9e03861c22ec6723b7b110d62ba60f37c164 (diff) | |
download | lwn-a58a6a58f5ad55aa1f5c54598c44f1d9938c1793.tar.gz lwn-a58a6a58f5ad55aa1f5c54598c44f1d9938c1793.zip |
bcachefs: Switch darray to kvmalloc()
We sometimes use darrays for quite large buffers - the btree write
buffer in particular needs large buffers, since it must be sized to hold
all the write buffer keys outstanding in the journal.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/darray.h')
-rw-r--r-- | fs/bcachefs/darray.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/darray.h b/fs/bcachefs/darray.h index 43ea21ad9ea3..6157c53d5bf0 100644 --- a/fs/bcachefs/darray.h +++ b/fs/bcachefs/darray.h @@ -92,7 +92,7 @@ do { \ #define darray_exit(_d) \ do { \ - kfree((_d)->data); \ + kvfree((_d)->data); \ darray_init(_d); \ } while (0) |