summaryrefslogtreecommitdiff
path: root/libbcachefs/rebalance.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/rebalance.h')
-rw-r--r--libbcachefs/rebalance.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libbcachefs/rebalance.h b/libbcachefs/rebalance.h
index bff91aa0..24bafa42 100644
--- a/libbcachefs/rebalance.h
+++ b/libbcachefs/rebalance.h
@@ -29,6 +29,10 @@ static inline struct bch_extent_rebalance io_opts_to_rebalance_opts(struct bch_f
void bch2_extent_rebalance_to_text(struct printbuf *, struct bch_fs *,
const struct bch_extent_rebalance *);
+int bch2_trigger_extent_rebalance(struct btree_trans *,
+ struct bkey_s_c, struct bkey_s_c,
+ enum btree_iter_update_trigger_flags);
+
u64 bch2_bkey_sectors_need_rebalance(struct bch_fs *, struct bkey_s_c);
enum set_needs_rebalance_ctx {