bcachefs: export bch2_move_data_phys()
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 3 Apr 2025 23:33:54 +0000 (19:33 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 00:14:21 +0000 (20:14 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/move.c
fs/bcachefs/move.h

index a4678a205da640c5ba294424e375e7ac6617853a..29981ebcb972d34c57a88265e767cfb9216fa66e 100644 (file)
@@ -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;
 
index 51e0505a8156afc5b8d2662c2d8e88f5b8f5f1ad..1ab6dd4621d699d2b0fe1e6d9e36a2537e09aa5e 100644 (file)
@@ -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,