commit | 2640faeb1741db94b717d2678f6cd644f90e3061 | [log] [tgz] |
---|---|---|
author | Kent Overstreet <kent.overstreet@linux.dev> | Mon Mar 06 05:29:12 2023 -0500 |
committer | Kent Overstreet <kent.overstreet@linux.dev> | Sun Oct 22 17:09:56 2023 -0400 |
tree | e22afd0d0eb1186592e9caaace85aac0f50e466b | |
parent | 511b629aca6007a8784a6005a023dd166ffaa787 [diff] |
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: Kent Overstreet <kent.overstreet@linux.dev>