bcachefs: Fix repair leading to replicas not marked
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 23 Apr 2021 20:18:43 +0000 (16:18 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:01 +0000 (17:09 -0400)
commit1c8441bea5366ec1e4f077ab675b49a603d7cad8
treed5728ca0923336de7a072bc7b5762e70d30c75b2
parent58686a259ed28f1ee50cc0aaa039e986aa218e0c
bcachefs: Fix repair leading to replicas not marked

bch2_check_fix_ptrs() was being called after checking if the replicas
set was marked - but repair could change which replicas set needed to be
marked. Oops.

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