summaryrefslogtreecommitdiff
path: root/libbcachefs/alloc_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/alloc_types.h')
-rw-r--r--libbcachefs/alloc_types.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libbcachefs/alloc_types.h b/libbcachefs/alloc_types.h
index e078584d..e66a85f7 100644
--- a/libbcachefs/alloc_types.h
+++ b/libbcachefs/alloc_types.h
@@ -8,6 +8,14 @@
#include "clock_types.h"
#include "fifo.h"
+struct bucket_alloc_state {
+ u64 cur_bucket;
+ u64 buckets_seen;
+ u64 skipped_open;
+ u64 skipped_need_journal_commit;
+ u64 skipped_nouse;
+};
+
struct ec_bucket_buf;
#define BCH_ALLOC_RESERVES() \
@@ -78,6 +86,11 @@ struct write_point {
struct open_buckets ptrs;
struct dev_stripe_state stripe;
+
+ struct work_struct index_update_work;
+
+ struct list_head writes;
+ spinlock_t writes_lock;
};
struct write_point_specifier {