bcachefs: bcachefs_metadata_version_fast_device_removal
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 4 May 2025 01:26:04 +0000 (21:26 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 00:14:49 +0000 (20:14 -0400)
commita8539ad8fa88e39c3f566b7c35029f25ab90b72e
treea3a3f556d0a5fb69a966df9028781c957c27c398
parent09fa6c3039d8bb22351ad071ea4656dd4f331d18
bcachefs: bcachefs_metadata_version_fast_device_removal

Fast device removal, that uses backpointers to find pointers to the
device being removed instead of a full metadata scan.

This requires BCH_SB_MEMBER_DELETED_UUID, which is an incompatible
change - hence the version number bump. We don't fully trust
backpointers, so we don't want to reuse device indexes until after a
fsck has verified that there aren't any pointers to removed devices.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bcachefs_format.h
fs/bcachefs/ec.c
fs/bcachefs/super.c