linux-bcachefs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Fast device removal
@ 2025-05-04 19:51 Kent Overstreet
  2025-05-04 19:51 ` [PATCH 1/3] bcachefs: BCH_SB_MEMBER_DELETED_UUID Kent Overstreet
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Kent Overstreet @ 2025-05-04 19:51 UTC (permalink / raw)
  To: linux-bcachefs; +Cc: Kent Overstreet

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(-)

-- 
2.49.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-05-04 19:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-04 19:51 [PATCH 0/3] Fast device removal Kent Overstreet
2025-05-04 19:51 ` [PATCH 1/3] bcachefs: BCH_SB_MEMBER_DELETED_UUID Kent Overstreet
2025-05-04 19:51 ` [PATCH 2/3] bcachefs: bch2_dev_data_drop_by_backpointers() Kent Overstreet
2025-05-04 19:51 ` [PATCH 3/3] bcachefs: bcachefs_metadata_version_fast_device_removal Kent Overstreet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).