Commit 0f64a6da authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: On missing backpointer to interior node, flush interior updates

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 21e07cc9
......@@ -441,6 +441,11 @@ static int check_bp_exists(struct btree_trans *trans,
memcmp(bkey_s_c_to_backpointer(bp_k).v, &bp, sizeof(bp))) {
if (last_flushed->level != bp.level ||
!bpos_eq(last_flushed->pos, orig_k.k->p)) {
if (bp.level) {
bch2_trans_unlock(trans);
bch2_btree_interior_updates_flush(c);
}
ret = bch2_btree_write_buffer_flush_sync(trans);
if (ret)
goto err;
......
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