Commit 74529338 authored by Daniel Hill's avatar Daniel Hill Committed by Kent Overstreet

bcachefs: remove dead bch2_evacuate_bucket()

Signed-off-by: default avatarDaniel Hill <daniel@gluo.nz>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 62286a08
...@@ -636,7 +636,7 @@ int bch2_move_data(struct bch_fs *c, ...@@ -636,7 +636,7 @@ int bch2_move_data(struct bch_fs *c,
return ret; return ret;
} }
int __bch2_evacuate_bucket(struct moving_context *ctxt, int bch2_evacuate_bucket(struct moving_context *ctxt,
struct move_bucket_in_flight *bucket_in_flight, struct move_bucket_in_flight *bucket_in_flight,
struct bpos bucket, int gen, struct bpos bucket, int gen,
struct data_update_opts _data_opts) struct data_update_opts _data_opts)
...@@ -796,24 +796,6 @@ int __bch2_evacuate_bucket(struct moving_context *ctxt, ...@@ -796,24 +796,6 @@ int __bch2_evacuate_bucket(struct moving_context *ctxt,
return ret; return ret;
} }
int bch2_evacuate_bucket(struct bch_fs *c,
struct bpos bucket, int gen,
struct data_update_opts data_opts,
struct bch_ratelimit *rate,
struct bch_move_stats *stats,
struct write_point_specifier wp,
bool wait_on_copygc)
{
struct moving_context ctxt;
int ret;
bch2_moving_ctxt_init(&ctxt, c, rate, stats, wp, wait_on_copygc);
ret = __bch2_evacuate_bucket(&ctxt, NULL, bucket, gen, data_opts);
bch2_moving_ctxt_exit(&ctxt);
return ret;
}
typedef bool (*move_btree_pred)(struct bch_fs *, void *, typedef bool (*move_btree_pred)(struct bch_fs *, void *,
struct btree *, struct bch_io_opts *, struct btree *, struct bch_io_opts *,
struct data_update_opts *); struct data_update_opts *);
......
...@@ -135,16 +135,10 @@ int bch2_move_data(struct bch_fs *, ...@@ -135,16 +135,10 @@ int bch2_move_data(struct bch_fs *,
bool, bool,
move_pred_fn, void *); move_pred_fn, void *);
int __bch2_evacuate_bucket(struct moving_context *, int bch2_evacuate_bucket(struct moving_context *,
struct move_bucket_in_flight *, struct move_bucket_in_flight *,
struct bpos, int, struct bpos, int,
struct data_update_opts); struct data_update_opts);
int bch2_evacuate_bucket(struct bch_fs *, struct bpos, int,
struct data_update_opts,
struct bch_ratelimit *,
struct bch_move_stats *,
struct write_point_specifier,
bool);
int bch2_data_job(struct bch_fs *, int bch2_data_job(struct bch_fs *,
struct bch_move_stats *, struct bch_move_stats *,
struct bch_ioctl_data); struct bch_ioctl_data);
......
...@@ -224,7 +224,7 @@ static int bch2_copygc(struct moving_context *ctxt, ...@@ -224,7 +224,7 @@ static int bch2_copygc(struct moving_context *ctxt,
break; break;
} }
ret = __bch2_evacuate_bucket(ctxt, f, f->bucket.k.bucket, ret = bch2_evacuate_bucket(ctxt, f, f->bucket.k.bucket,
f->bucket.k.gen, data_opts); f->bucket.k.gen, data_opts);
if (ret) if (ret)
goto err; goto err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment