mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
bcachefs: darray: provide typedefs for primitive types
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
2a81bd454c
commit
ea27e8ca5d
3 changed files with 11 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue