diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-11-22 00:42:55 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-11-22 00:50:47 -0500 |
commit | 22291ae84a029d65334d1a90b67b5031f45cd540 (patch) | |
tree | ab9fefe205577324915545b21535fcccbff89f48 /libbcachefs/migrate.c | |
parent | 74cb92203293a8d5b16b078389f6b3dba5300e89 (diff) |
Update bcachefs sources to 9e7ae5219c bcachefs: Make write points more dynamic
Diffstat (limited to 'libbcachefs/migrate.c')
-rw-r--r-- | libbcachefs/migrate.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libbcachefs/migrate.c b/libbcachefs/migrate.c index c6659259..d7f27a3d 100644 --- a/libbcachefs/migrate.c +++ b/libbcachefs/migrate.c @@ -15,6 +15,7 @@ static int issue_migration_move(struct bch_dev *ca, struct moving_context *ctxt, + struct bch_devs_mask *devs, struct bkey_s_c k) { struct bch_fs *c = ca->fs; @@ -33,7 +34,7 @@ static int issue_migration_move(struct bch_dev *ca, found: /* XXX: we need to be doing something with the disk reservation */ - ret = bch2_data_move(c, ctxt, &c->migration_write_point, k, ptr); + ret = bch2_data_move(c, ctxt, devs, k, ptr); if (ret) bch2_disk_reservation_put(c, &res); return ret; @@ -110,7 +111,7 @@ int bch2_move_data_off_device(struct bch_dev *ca) ca->dev_idx)) goto next; - ret = issue_migration_move(ca, &ctxt, k); + ret = issue_migration_move(ca, &ctxt, NULL, k); if (ret == -ENOMEM) { bch2_btree_iter_unlock(&iter); |