diff options
author | 2025-04-03 19:33:54 -0400 | |
---|---|---|
committer | 2025-05-21 20:14:21 -0400 | |
commit | ecedc87cfaf016e7e857a209e1b2685a28d59566 (patch) | |
tree | 04d6e26babd9e87f5d0cb46194fa28b14cdae904 | |
parent | bcachefs: BCH_MEMBER_RESIZE_ON_MOUNT (diff) | |
download | wireguard-linux-ecedc87cfaf016e7e857a209e1b2685a28d59566.tar.xz wireguard-linux-ecedc87cfaf016e7e857a209e1b2685a28d59566.zip |
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 a4678a205da6..29981ebcb972 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 51e0505a8156..1ab6dd4621d6 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, |