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

bcachefs: fix bch2_extent_merge()

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 3838be78
...@@ -1529,6 +1529,9 @@ enum merge_result bch2_extent_merge(struct bch_fs *c, ...@@ -1529,6 +1529,9 @@ enum merge_result bch2_extent_merge(struct bch_fs *c,
union bch_extent_entry *en_r = er.v->start; union bch_extent_entry *en_r = er.v->start;
struct bch_extent_crc_unpacked crc_l, crc_r; struct bch_extent_crc_unpacked crc_l, crc_r;
if (bkey_val_u64s(&l->k) != bkey_val_u64s(&r->k))
return BCH_MERGE_NOMERGE;
crc_l = bch2_extent_crc_unpack(el.k, NULL); crc_l = bch2_extent_crc_unpack(el.k, NULL);
extent_for_each_entry(el, en_l) { extent_for_each_entry(el, en_l) {
......
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