Commit 73da30e8 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Fix check_overlapping_extents()

A error check had a flipped conditional - whoops.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 4a2e5d7b
......@@ -1176,7 +1176,7 @@ static int check_overlapping_extents(struct btree_trans *trans,
goto err;
bkey_reassemble(update, k);
ret = bch2_trans_update_extent(trans, iter, update, 0);
if (!ret)
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