Commit 7f12a963 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: fix rebalance accounting



Fixes: 49aa7830 ("bcachefs: Fix rebalance_work accounting")
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 3d3020c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -876,7 +876,7 @@ int bch2_trigger_extent(struct btree_trans *trans,
		need_rebalance_delta -= s != 0;
		need_rebalance_sectors_delta -= s;

		s = bch2_bkey_sectors_need_rebalance(c, old);
		s = bch2_bkey_sectors_need_rebalance(c, new.s_c);
		need_rebalance_delta += s != 0;
		need_rebalance_sectors_delta += s;