mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02:00
bcachefs: ec: fall back to creating new stripes for copygc
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
57c723de7d
commit
10d9f7d285
|
|
@ -1706,6 +1706,14 @@ struct ec_stripe_head *bch2_ec_stripe_head_get(struct btree_trans *trans,
|
|||
if (waiting || !cl || ret != -BCH_ERR_stripe_alloc_blocked)
|
||||
goto err;
|
||||
|
||||
if (reserve == RESERVE_movinggc) {
|
||||
ret = new_stripe_alloc_buckets(trans, h, reserve, NULL) ?:
|
||||
__bch2_ec_stripe_head_reserve(trans, h);
|
||||
if (ret)
|
||||
goto err;
|
||||
goto allocate_buf;
|
||||
}
|
||||
|
||||
/* XXX freelist_wait? */
|
||||
closure_wait(&c->freelist_wait, cl);
|
||||
waiting = true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user