Commit 8e5b1115 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Write buffer flush needs BTREE_INSERT_NOCHECK_RW

btree write buffer flush is only invoked from contexts that already hold
a write ref, and checking if we're still RW could cause us to fail to
completely flush the write buffer when shutting down.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 7724664f
...@@ -78,6 +78,7 @@ static int bch2_btree_write_buffer_flush_one(struct btree_trans *trans, ...@@ -78,6 +78,7 @@ static int bch2_btree_write_buffer_flush_one(struct btree_trans *trans,
return bch2_trans_update(trans, iter, &wb->k, 0) ?: return bch2_trans_update(trans, iter, &wb->k, 0) ?:
bch2_trans_commit(trans, NULL, NULL, bch2_trans_commit(trans, NULL, NULL,
commit_flags| commit_flags|
BTREE_INSERT_NOCHECK_RW|
BTREE_INSERT_NOFAIL| BTREE_INSERT_NOFAIL|
BTREE_INSERT_JOURNAL_RECLAIM); BTREE_INSERT_JOURNAL_RECLAIM);
} }
......
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