Commit 01ed3359 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: btree_update_nodes_written() needs BTREE_INSERT_USE_RESERVE

This fixes an obvious deadlock - whoops.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent d602657c
......@@ -625,6 +625,7 @@ static void btree_update_nodes_written(struct btree_update *as)
ret = commit_do(&trans, &as->disk_res, &journal_seq,
BTREE_INSERT_NOFAIL|
BTREE_INSERT_NOCHECK_RW|
BTREE_INSERT_USE_RESERVE|
BTREE_INSERT_JOURNAL_RECLAIM|
JOURNAL_WATERMARK_reserved,
btree_update_nodes_written_trans(&trans, as));
......
Markdown is supported
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