1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00

bcachefs: Check for -BCH_ERR_open_buckets_empty in journal resize

This fixes occasional failures from journal resize.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2025-02-25 22:35:28 -05:00
parent 4804f3ac26
commit 7909d1fb90

View file

@ -1194,7 +1194,9 @@ int bch2_set_nr_journal_buckets(struct bch_fs *c, struct bch_dev *ca,
closure_sync(&cl);
if (ret && ret != -BCH_ERR_bucket_alloc_blocked)
if (ret &&
ret != -BCH_ERR_bucket_alloc_blocked &&
ret != -BCH_ERR_open_buckets_empty)
break;
}