bcachefs: Fix bch2_replicas_gc2
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 10 Jan 2021 18:38:09 +0000 (13:38 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:50 +0000 (17:08 -0400)
commit53ef2c5cc991a9c5aecc7b85754695df5cc5de45
tree0e25693e3c19b67e057af0da31994e876ef3cd92
parent4291a3317f3724283023f35802c47083a05b938d
bcachefs: Fix bch2_replicas_gc2

This fixes a regression introduced by "bcachefs: Refactor filesystem
usage accounting". We have to include all the replicas entries that have
any of the entries for different journal entries nonzero, we can't skip
them if they sum to zero.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/replicas.c