mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 15:03:52 +08:00
bcachefs: darray: provide typedefs for primitive types
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
@@ -20,7 +20,17 @@ struct { \
|
||||
#define DARRAY(_type) DARRAY_PREALLOCATED(_type, 0)
|
||||
|
||||
typedef DARRAY(char) darray_char;
|
||||
typedef DARRAY(char *) darray_str;
|
||||
typedef DARRAY(char *) darray_str;
|
||||
|
||||
typedef DARRAY(u8) darray_u8;
|
||||
typedef DARRAY(u16) darray_u16;
|
||||
typedef DARRAY(u32) darray_u32;
|
||||
typedef DARRAY(u64) darray_u64;
|
||||
|
||||
typedef DARRAY(s8) darray_s8;
|
||||
typedef DARRAY(s16) darray_s16;
|
||||
typedef DARRAY(s32) darray_s32;
|
||||
typedef DARRAY(s64) darray_s64;
|
||||
|
||||
int __bch2_darray_resize_noprof(darray_char *, size_t, size_t, gfp_t);
|
||||
|
||||
|
||||
@@ -2445,8 +2445,6 @@ int bch2_check_root(struct bch_fs *c)
|
||||
return ret;
|
||||
}
|
||||
|
||||
typedef DARRAY(u32) darray_u32;
|
||||
|
||||
static bool darray_u32_has(darray_u32 *d, u32 v)
|
||||
{
|
||||
darray_for_each(*d, i)
|
||||
|
||||
@@ -151,8 +151,6 @@ enum journal_flags {
|
||||
#undef x
|
||||
};
|
||||
|
||||
typedef DARRAY(u64) darray_u64;
|
||||
|
||||
struct journal_bio {
|
||||
struct bch_dev *ca;
|
||||
unsigned buf_idx;
|
||||
|
||||
Reference in New Issue
Block a user