bcachefs: fix rebalance accounting
Fixes: 49aa783039
("bcachefs: Fix rebalance_work accounting")
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
3d3020c461
commit
7f12a963b6
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user