bcachefs: move.c refactoring

- add bch2_moving_ctxt_(init|exit)
 - split out __bch2_evacutae_bucket() which takes an existing
   moving_ctxt, this will be used for improving copygc performance by
   pipelining across multiple buckets

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2022-06-20 15:40:26 -04:00 • committed by Kent Overstreet
commit 0337cc7eee
4 changed files with 114 additions and 87 deletions