]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: bch2_dev_data_drop_by_backpointers()
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 4 May 2025 01:36:23 +0000 (21:36 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 00:14:49 +0000 (20:14 -0400)
commit09fa6c3039d8bb22351ad071ea4656dd4f331d18
tree4c6f2ace380fcdf3f34de03ea10f8ab9984af89d
parentb3f80d09236e4915d7deedfaf15d7bdaef6f14d2
bcachefs: bch2_dev_data_drop_by_backpointers()

Currently, device removal has to scan all metadata for pointers to the
device being removed.

Add a new method, with the same interface as bch2_dev_data_drop(), that
scans by backpointers instead - this will drastically speed up device
removal.

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