summaryrefslogtreecommitdiff
path: root/libbcachefs/data_update.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/data_update.h')
-rw-r--r--libbcachefs/data_update.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libbcachefs/data_update.h b/libbcachefs/data_update.h
index c194cbbf..ed051258 100644
--- a/libbcachefs/data_update.h
+++ b/libbcachefs/data_update.h
@@ -24,7 +24,19 @@ struct data_update_opts {
void bch2_data_update_opts_to_text(struct printbuf *, struct bch_fs *,
struct bch_io_opts *, struct data_update_opts *);
+#define BCH_DATA_UPDATE_TYPES() \
+ x(copygc, 0) \
+ x(rebalance, 1) \
+ x(promote, 2)
+
+enum bch_data_update_types {
+#define x(n, id) BCH_DATA_UPDATE_##n = id,
+ BCH_DATA_UPDATE_TYPES()
+#undef x
+};
+
struct data_update {
+ enum bch_data_update_types type;
/* extent being updated: */
bool read_done;
enum btree_id btree_id;