bcachefs: Switch darray to kvmalloc()
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 17 Nov 2023 00:44:48 +0000 (19:44 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 1 Jan 2024 16:46:52 +0000 (11:46 -0500)
commita58a6a58f5ad55aa1f5c54598c44f1d9938c1793
tree01c129d85febc80b3057b91f07cc34826bd4225a
parent73ab9e03861c22ec6723b7b110d62ba60f37c164
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>
fs/bcachefs/darray.c
fs/bcachefs/darray.h