bcachefs: Use wait_on_allocator() when allocating journal

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

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet
2025-06-24 17:53:00 -04:00
parent 865ad1dbf1
commit f5109c201c
+1 -1
View File
@@ -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;