Commit 2640faeb authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Journal resize fixes



 - Fix a sleeping-in-atomic bug due to calling
   bch2_journal_buckets_to_sb() under the journal lock.
 - Additionally, now we mark buckets as journal buckets before adding
   them to the journal in memory and the superblock. This ensures that
   if we crash part way through we'll never be writing to journal
   buckets that aren't marked correctly.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 511b629a
Supports Markdown
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