summaryrefslogtreecommitdiff
path: root/fs/bcachefs/move_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/bcachefs/move_types.h')
-rw-r--r--fs/bcachefs/move_types.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/fs/bcachefs/move_types.h b/fs/bcachefs/move_types.h
index 285ffdb762ac..baf1f8570b3f 100644
--- a/fs/bcachefs/move_types.h
+++ b/fs/bcachefs/move_types.h
@@ -16,9 +16,20 @@ struct bch_move_stats {
atomic64_t sectors_raced;
};
-struct move_bucket_in_flight {
+struct move_bucket_key {
struct bpos bucket;
u8 gen;
+};
+
+struct move_bucket {
+ struct move_bucket_key k;
+ unsigned sectors;
+};
+
+struct move_bucket_in_flight {
+ struct move_bucket_in_flight *next;
+ struct rhash_head hash;
+ struct move_bucket bucket;
atomic_t count;
};