bcachefs: Convert split_devs() to darray
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 23 Dec 2023 02:10:32 +0000 (21:10 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 1 Jan 2024 16:47:43 +0000 (11:47 -0500)
commit806ebf2aa01749ca4c510fbb42cd146bdfdbe5a4
tree6ec98ac3db9b93961293a412efabe0d783096a78
parent0c0ba8e9c5a9f06a6a57acfc34a5526f9fdd41c4
bcachefs: Convert split_devs() to darray

Bit of cleanup & modernization: also moving this code to util.c, it'll
be used by userspace as well.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/darray.h
fs/bcachefs/fs.c
fs/bcachefs/util.c
fs/bcachefs/util.h