diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-03 19:33:54 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-21 20:14:21 -0400 |
commit | ecedc87cfaf016e7e857a209e1b2685a28d59566 (patch) | |
tree | 04d6e26babd9e87f5d0cb46194fa28b14cdae904 | |
parent | 0ca375b1779f22f703f956b22ea2bdbc69c247eb (diff) |
bcachefs: export bch2_move_data_phys()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/move.c | 20 | ||||
-rw-r--r-- | fs/bcachefs/move.h | 5 |
2 files changed, 15 insertions, 10 deletions
diff --git a/fs/bcachefs/move.c b/fs/bcachefs/move.c index a4678a205da64..29981ebcb972d 100644 --- a/fs/bcachefs/move.c +++ b/fs/bcachefs/move.c @@ -900,16 +900,16 @@ err: return ret; } -static int bch2_move_data_phys(struct bch_fs *c, - unsigned dev, - u64 start, - u64 end, - unsigned data_types, - struct bch_ratelimit *rate, - struct bch_move_stats *stats, - struct write_point_specifier wp, - bool wait_on_copygc, - move_pred_fn pred, void *arg) +int bch2_move_data_phys(struct bch_fs *c, + unsigned dev, + u64 start, + u64 end, + unsigned data_types, + struct bch_ratelimit *rate, + struct bch_move_stats *stats, + struct write_point_specifier wp, + bool wait_on_copygc, + move_pred_fn pred, void *arg) { struct moving_context ctxt; diff --git a/fs/bcachefs/move.h b/fs/bcachefs/move.h index 51e0505a8156a..1ab6dd4621d69 100644 --- a/fs/bcachefs/move.h +++ b/fs/bcachefs/move.h @@ -135,6 +135,11 @@ int bch2_move_data(struct bch_fs *, bool, move_pred_fn, void *); +int bch2_move_data_phys(struct bch_fs *, unsigned, u64, u64, unsigned, + struct bch_ratelimit *, struct bch_move_stats *, + struct write_point_specifier, bool, + move_pred_fn, void *); + int bch2_evacuate_bucket(struct moving_context *, struct move_bucket_in_flight *, struct bpos, int, |