Skip to content

Fast device removal

Kent Overstreet linux-bcachefs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bcachefs: BCH_SB_MEMBER_DELETED_UUIDfs/bcachefs/btree_gc.c fs/bcachefs/sb-members.c fs/bcachefs/sb-members.h +1 more+39 -20 replies
2/3bcachefs: bch2_dev_data_drop_by_backpointers()fs/bcachefs/migrate.c fs/bcachefs/migrate.h+95 -150 replies
3/3bcachefs: bcachefs_metadata_version_fast_device_removalfs/bcachefs/bcachefs_format.h fs/bcachefs/super.c+24 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Fast device removal

Previously, device removal had to do a full metadata scan to check for pointers to the device being removed.

Instead, we can now walk backpointers - drastically faster on large filesystems, particularly after we've already done an evacuate.

Since we don't fully trust backpointers this requires an incompatible upgrade - we need a sentinal value on member devices so that device indexes aren't reused until after a fsck.

Kent Overstreet (3):
bcachefs: BCH_SB_MEMBER_DELETED_UUID
bcachefs: bch2_dev_data_drop_by_backpointers()
bcachefs: bcachefs_metadata_version_fast_device_removal

 fs/bcachefs/bcachefs_format.h   |   3 +-
 fs/bcachefs/btree_gc.c          |   4 ++
 fs/bcachefs/migrate.c           | 107 +++++++++++++++++++++++++++-----
 fs/bcachefs/migrate.h           |   3 +-
 fs/bcachefs/sb-members.c        |  29 ++++++++-
 fs/bcachefs/sb-members.h        |   4 +-
 fs/bcachefs/sb-members_format.h |   4 ++
 fs/bcachefs/super.c             |  25 +++++++-
 8 files changed, 158 insertions(+), 21 deletions(-)
Signature · 1 line
2.49.0