mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
bcachefs: fix bch2_extent_merge()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
3838be7841
commit
a62c78a794
1 changed files with 3 additions and 0 deletions
|
@ -1529,6 +1529,9 @@ enum merge_result bch2_extent_merge(struct bch_fs *c,
|
|||
union bch_extent_entry *en_r = er.v->start;
|
||||
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);
|
||||
|
||||
extent_for_each_entry(el, en_l) {
|
||||
|
|
Loading…
Add table
Reference in a new issue