diff options
Diffstat (limited to 'libbcachefs/alloc.h')
-rw-r--r-- | libbcachefs/alloc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libbcachefs/alloc.h b/libbcachefs/alloc.h index 00d01f46..739df233 100644 --- a/libbcachefs/alloc.h +++ b/libbcachefs/alloc.h @@ -9,8 +9,10 @@ struct bch_dev; struct bch_fs; struct bch_devs_List; +#define ALLOC_SCAN_BATCH(ca) ((ca)->mi.nbuckets >> 9) + const char *bch2_alloc_invalid(const struct bch_fs *, struct bkey_s_c); -void bch2_alloc_to_text(struct bch_fs *, char *, size_t, struct bkey_s_c); +int bch2_alloc_to_text(struct bch_fs *, char *, size_t, struct bkey_s_c); #define bch2_bkey_alloc_ops (struct bkey_ops) { \ .key_invalid = bch2_alloc_invalid, \ |