]> www.infradead.org Git - users/dwmw2/linux.git/commit
bcachefs: Fix bch2_dev_journal_alloc() spuriously failing
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 1 Mar 2025 01:07:58 +0000 (20:07 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 6 Mar 2025 23:15:01 +0000 (18:15 -0500)
commit33255c161ac4be003ac87c434ebc49645d18a929
treecec612a1096cd27816b741dba58e834bb5e65e6d
parent4a4f9b5c7c13601c4f1b3d8c607d7439e39f40d2
bcachefs: Fix bch2_dev_journal_alloc() spuriously failing

Previously, we fixed journal resize spuriousl failing with
-BCH_ERR_open_buckets_empty, but initial journal allocation was missed
because it didn't invoke the "block on allocator" loop at all.

Factor out the "loop on allocator" code to fix that.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/journal.c