Skip to content

Commit 7909d1f

Browse files
author
Kent Overstreet
committed
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>
1 parent 4804f3a commit 7909d1f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fs/bcachefs/journal.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,9 @@ int bch2_set_nr_journal_buckets(struct bch_fs *c, struct bch_dev *ca,
11941194

11951195
closure_sync(&cl);
11961196

1197-
if (ret && ret != -BCH_ERR_bucket_alloc_blocked)
1197+
if (ret &&
1198+
ret != -BCH_ERR_bucket_alloc_blocked &&
1199+
ret != -BCH_ERR_open_buckets_empty)
11981200
break;
11991201
}
12001202

0 commit comments

Comments
 (0)