bcachefs: Add a progress indicator to bch2_dev_data_drop()
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 6 Feb 2025 21:25:29 +0000 (16:25 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 15 Mar 2025 01:02:12 +0000 (21:02 -0400)
commit491eda63947335e4f779443b524ae6086b0de052
treeabd107e95798c5109732759c8db8cfeb7cde0e09
parentbaabeb499758706a9093c610c5d97cf6de5f649a
bcachefs: Add a progress indicator to bch2_dev_data_drop()

This code needs quite a bit of work: we don't want to be walking all
metadata in the filesystem, we should just be walking backpointers, and
it should be switched to a data ioctl that can report progress via a
file descriptor, not the system console.

But that'll take more work - before we can safely walk only backpointers
we need to change device add to not reuse device indexes, since with
that change accounting being wrong introduces the possibility of
removing a device that still has pointers.

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