bcachefs: Rereplicate now moves data off of durability=0 devices
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 3 Jun 2024 02:25:18 +0000 (22:25 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 5 Jun 2024 14:44:08 +0000 (10:44 -0400)
commitfdccb24352e589bb59c9ba90f23c4e0994b90518
tree45c27b80330fba2e7866531140d4fd0340528e2c
parent9a64e1bfd8a10c015c41fe0d289e89862486c50d
bcachefs: Rereplicate now moves data off of durability=0 devices

This fixes an issue where setting a device to durability=0 after it's
been used makes it impossible to remove.

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