bcachefs: Improve locking in __bch2_set_nr_journal_buckets()
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 11 Feb 2023 21:53:59 +0000 (16:53 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:52 +0000 (17:09 -0400)
commit76966dbfa9eb4a723cb899ba07f55448e5b21bbe
tree3e2762d0e311cac5dabd91aef4df7192855610a6
parentc1f59ef6d00940f22fa5e88d1d7705c85ec6d118
bcachefs: Improve locking in __bch2_set_nr_journal_buckets()

This refactors to not call bch2_journal_block() with c->sb_lock held.

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