summaryrefslogtreecommitdiff
path: root/libbcachefs/move.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-02-07 08:08:24 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2018-02-08 15:33:42 -0500
commit6976570d670e4053f026d380cfe5397a0a8ed139 (patch)
tree29abbf0f904cf1a12e7299b270cf59f1e22c3be3 /libbcachefs/move.h
parenta9f5937a9764003f3c88ccff4f92da259f025674 (diff)
Update bcachefs sources to d5e561b3cc bcachefs: BCH_DATA ioctl
Diffstat (limited to 'libbcachefs/move.h')
-rw-r--r--libbcachefs/move.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/libbcachefs/move.h b/libbcachefs/move.h
index 24d6ddfa..07aa5669 100644
--- a/libbcachefs/move.h
+++ b/libbcachefs/move.h
@@ -27,6 +27,7 @@ void bch2_migrate_write_init(struct migrate_write *, struct bch_read_bio *);
typedef bool (*move_pred_fn)(void *, struct bkey_s_c_extent);
struct bch_move_stats {
+ enum bch_data_type data_type;
struct btree_iter iter;
atomic64_t keys_moved;
@@ -38,7 +39,12 @@ struct bch_move_stats {
int bch2_move_data(struct bch_fs *, struct bch_ratelimit *,
unsigned, struct bch_devs_mask *,
struct write_point_specifier,
- int, int, move_pred_fn, void *,
+ int, int, struct bpos, struct bpos,
+ move_pred_fn, void *,
struct bch_move_stats *);
+int bch2_data_job(struct bch_fs *,
+ struct bch_move_stats *,
+ struct bch_ioctl_data);
+
#endif /* _BCACHEFS_MOVE_H */