Commit 7909d1fb authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Check for -BCH_ERR_open_buckets_empty in journal resize



This fixes occasional failures from journal resize.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 4804f3ac
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;
	}