bcachefs: Factor out darray resize slowpath
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 8 Nov 2023 22:11:44 +0000 (17:11 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 1 Jan 2024 16:46:52 +0000 (11:46 -0500)
commit73ab9e03861c22ec6723b7b110d62ba60f37c164
tree433dcdcedf50af693c4b3b4fe25a9a9fcab0a554
parentf87bf892ea9848696ddfd184964d303202dd19dd
bcachefs: Factor out darray resize slowpath

Move the slowpath (actually growing the darray) to an out-of-line
function; also, add some helpers for the upcoming btree write buffer
rewrite.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/Makefile
fs/bcachefs/darray.c [new file with mode: 0644]
fs/bcachefs/darray.h