bcachefs: Fix promotes
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 24 Dec 2023 04:29:05 +0000 (23:29 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 27 Dec 2023 00:31:11 +0000 (19:31 -0500)
commit7b474c77daddaf89bbb72594737538f4e0dce2fd
treeabd069541396374967c87b455b829a15ed94cfb3
parentc8296d730f19b3916c11aa7b8c47a2b3e5a7ca9c
bcachefs: Fix promotes

The recent work to fix data moves w.r.t. durability broke promotes,
because the caused us to bail out when the extent minus pointers being
dropped still has enough pointers to satisfy the current number of
replicas.

Disable this check when we're adding cached replicas.

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