bcachefs: Fix copygc sectors_to_move calculation
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 5 Dec 2021 02:52:09 +0000 (21:52 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:18 +0000 (17:09 -0400)
commit47b15c5760d5eec6c69f207eda7f779c2170e285
tree4d0c65f32da061de1902889c6f60e9d3d39ee197
parent2430e72f42778a9448ff386686856b61b49f5074
bcachefs: Fix copygc sectors_to_move calculation

With erasure coding, copygc's count of sectors to move was off, which
matters for the debug statement it prints out when it's not able to move
all the data it tried to.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/move.c
fs/bcachefs/movinggc.c