diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-22 21:10:32 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 11:47:43 -0500 |
commit | 806ebf2aa01749ca4c510fbb42cd146bdfdbe5a4 (patch) | |
tree | 6ec98ac3db9b93961293a412efabe0d783096a78 /fs/bcachefs/util.h | |
parent | 0c0ba8e9c5a9f06a6a57acfc34a5526f9fdd41c4 (diff) |
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>
Diffstat (limited to 'fs/bcachefs/util.h')
-rw-r--r-- | fs/bcachefs/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/util.h b/fs/bcachefs/util.h index 1ff063bb8741..4290e0a53b75 100644 --- a/fs/bcachefs/util.h +++ b/fs/bcachefs/util.h @@ -863,4 +863,7 @@ static inline bool qstr_eq(const struct qstr l, const struct qstr r) return l.len == r.len && !memcmp(l.name, r.name, l.len); } +void bch2_darray_str_exit(darray_str *); +int bch2_split_devs(const char *, darray_str *); + #endif /* _BCACHEFS_UTIL_H */ |