Skip to content

Commit

Permalink
bcachefs: fix rebalance accounting
Browse files Browse the repository at this point in the history
Fixes: 49aa783 ("bcachefs: Fix rebalance_work accounting")
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
  • Loading branch information
Kent Overstreet committed Sep 1, 2024
1 parent 3d3020c commit 7f12a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/bcachefs/buckets.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7f12a96

Please sign in to comment.