Commit ec350b90 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Drop unused arg to bch2_open_buckets_stop_dev()

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent eab32c8e
...@@ -693,8 +693,7 @@ static int open_bucket_add_buckets(struct bch_fs *c, ...@@ -693,8 +693,7 @@ static int open_bucket_add_buckets(struct bch_fs *c,
} }
void bch2_open_buckets_stop_dev(struct bch_fs *c, struct bch_dev *ca, void bch2_open_buckets_stop_dev(struct bch_fs *c, struct bch_dev *ca,
struct open_buckets *obs, struct open_buckets *obs)
enum bch_data_type data_type)
{ {
struct open_buckets ptrs = { .nr = 0 }; struct open_buckets ptrs = { .nr = 0 };
struct open_bucket *ob, *ob2; struct open_bucket *ob, *ob2;
...@@ -725,7 +724,7 @@ void bch2_writepoint_stop(struct bch_fs *c, struct bch_dev *ca, ...@@ -725,7 +724,7 @@ void bch2_writepoint_stop(struct bch_fs *c, struct bch_dev *ca,
struct write_point *wp) struct write_point *wp)
{ {
mutex_lock(&wp->lock); mutex_lock(&wp->lock);
bch2_open_buckets_stop_dev(c, ca, &wp->ptrs, wp->type); bch2_open_buckets_stop_dev(c, ca, &wp->ptrs);
mutex_unlock(&wp->lock); mutex_unlock(&wp->lock);
} }
......
...@@ -106,7 +106,7 @@ void bch2_alloc_sectors_append_ptrs(struct bch_fs *, struct write_point *, ...@@ -106,7 +106,7 @@ void bch2_alloc_sectors_append_ptrs(struct bch_fs *, struct write_point *,
void bch2_alloc_sectors_done(struct bch_fs *, struct write_point *); void bch2_alloc_sectors_done(struct bch_fs *, struct write_point *);
void bch2_open_buckets_stop_dev(struct bch_fs *, struct bch_dev *, void bch2_open_buckets_stop_dev(struct bch_fs *, struct bch_dev *,
struct open_buckets *, enum bch_data_type); struct open_buckets *);
void bch2_writepoint_stop(struct bch_fs *, struct bch_dev *, void bch2_writepoint_stop(struct bch_fs *, struct bch_dev *,
struct write_point *); struct write_point *);
......
...@@ -1173,12 +1173,8 @@ void bch2_ec_stop_dev(struct bch_fs *c, struct bch_dev *ca) ...@@ -1173,12 +1173,8 @@ void bch2_ec_stop_dev(struct bch_fs *c, struct bch_dev *ca)
struct ec_stripe_new *s = NULL; struct ec_stripe_new *s = NULL;
mutex_lock(&h->lock); mutex_lock(&h->lock);
bch2_open_buckets_stop_dev(c, ca, bch2_open_buckets_stop_dev(c, ca, &h->blocks);
&h->blocks, bch2_open_buckets_stop_dev(c, ca, &h->parity);
BCH_DATA_USER);
bch2_open_buckets_stop_dev(c, ca,
&h->parity,
BCH_DATA_USER);
if (!h->s) if (!h->s)
goto unlock; goto unlock;
......
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