Skip to content

Commit

Permalink
fixup! bcachefs: More topology repair code
Browse files Browse the repository at this point in the history
  • Loading branch information
koverstreet committed Jun 17, 2021
1 parent 1a54de9 commit 67e5efa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/bcachefs/btree_gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,10 @@ static int bch2_btree_repair_topology_recurse(struct bch_fs *c, struct btree *b)
continue;
}

if (prev)
if (prev) {
six_unlock_read(&prev->c.lock);
prev = NULL;
}

if (ret == DROP_PREV_NODE) {
bch2_btree_node_evict(c, prev_k.k);
Expand Down

0 comments on commit 67e5efa

Please sign in to comment.