bcachefs: bch2_dev_journal_alloc() now respects data_allowed

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2025-04-13 13:52:12 -04:00
parent 93ac4d5f92
commit 2e0d51d00e

View File

@ -1298,6 +1298,9 @@ int bch2_set_nr_journal_buckets(struct bch_fs *c, struct bch_dev *ca,
int bch2_dev_journal_alloc(struct bch_dev *ca, bool new_fs)
{
if (!(ca->mi.data_allowed & BIT(BCH_DATA_journal)))
return 0;
unsigned nr;
int ret;