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

bcachefs: fix rebalance accounting

Fixes: 49aa7830 ("bcachefs: Fix rebalance_work accounting")
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 3d3020c4
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment