Commit b674bfad authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Use BTREE_INSERT_USE_RESERVE in btree_update_key()

bch2_btree_update_key() is used in the btree node write path - before
delivering the completion we have to update the parent pointer with the
number of sectors written.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
parent 7d782ae4
...@@ -1937,6 +1937,7 @@ static int __bch2_btree_node_update_key(struct btree_trans *trans, ...@@ -1937,6 +1937,7 @@ static int __bch2_btree_node_update_key(struct btree_trans *trans,
ret = bch2_trans_commit(trans, NULL, NULL, ret = bch2_trans_commit(trans, NULL, NULL,
BTREE_INSERT_NOFAIL| BTREE_INSERT_NOFAIL|
BTREE_INSERT_NOCHECK_RW| BTREE_INSERT_NOCHECK_RW|
BTREE_INSERT_USE_RESERVE|
BTREE_INSERT_JOURNAL_RECLAIM| BTREE_INSERT_JOURNAL_RECLAIM|
BTREE_INSERT_JOURNAL_RESERVED); BTREE_INSERT_JOURNAL_RESERVED);
if (ret) if (ret)
......
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