Commit f5109c20 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Use wait_on_allocator() when allocating journal



wait_on_allocator() emits debug info when we hang trying to allocate.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 865ad1db
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1283,7 +1283,7 @@ static int bch2_set_nr_journal_buckets_loop(struct bch_fs *c, struct bch_dev *ca
			ret = 0; /* wait and retry */

		bch2_disk_reservation_put(c, &disk_res);
		closure_sync(&cl);
		bch2_wait_on_allocator(c, &cl);
	}

	return ret;