Commit 1ae40fd8 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix error path in bch2_trans_commit_write_locked()



Previously, we were journalling extra_journal_entries (which is used for
new btree roots, and irreversably mutates system state) before calling
bch2_trans_fs_usage_apply(), which can fail - whoops.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 08f78031
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