Skip to content
Commit 80396a47 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Break up bch2_journal_write()



Split up bch2_journal_write() to simplify locking:
 - bch2_journal_write_pick_flush(), which needs j->lock
 - bch2_journal_write_prep, which operates on the journal buffer to be
   written and will need the upcoming buf_lock for synchronization with
   the btree write buffer flush path

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent a973de85
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment