1 #ifndef _BCACHEFS_MOVE_H
2 #define _BCACHEFS_MOVE_H
10 struct migrate_write {
11 struct moving_context *ctxt;
14 struct bch_extent_ptr ptr;
18 int btree_insert_flags;
19 struct bch_write_op op;
22 void bch2_migrate_write_init(struct migrate_write *, struct bch_read_bio *);
24 #define SECTORS_IN_FLIGHT_PER_DEVICE 2048
26 typedef bool (*move_pred_fn)(void *, struct bkey_s_c_extent);
28 int bch2_move_data(struct bch_fs *, struct bch_ratelimit *,
29 unsigned, struct bch_devs_mask *,
30 struct write_point_specifier,
31 int, int, move_pred_fn, void *,
34 #endif /* _BCACHEFS_MOVE_H */