Skip to content

Commit 7f12a96

Browse files
author
Kent Overstreet
committed
bcachefs: fix rebalance accounting
Fixes: 49aa783 ("bcachefs: Fix rebalance_work accounting") Signed-off-by: Kent Overstreet <[email protected]>
1 parent 3d3020c commit 7f12a96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/bcachefs/buckets.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ int bch2_trigger_extent(struct btree_trans *trans,
876876
need_rebalance_delta -= s != 0;
877877
need_rebalance_sectors_delta -= s;
878878

879-
s = bch2_bkey_sectors_need_rebalance(c, old);
879+
s = bch2_bkey_sectors_need_rebalance(c, new.s_c);
880880
need_rebalance_delta += s != 0;
881881
need_rebalance_sectors_delta += s;
882882

0 commit comments

Comments
 (0)