Lines Matching defs:k2
893 bool bch2_extents_match(struct bkey_s_c k1, struct bkey_s_c k2)
895 if (k1.k->type != k2.k->type)
900 struct bkey_ptrs_c ptrs2 = bch2_bkey_ptrs_c(k2);
904 if (bkey_extent_is_unwritten(k1) != bkey_extent_is_unwritten(k2))
908 bkey_for_each_ptr_decode(k2.k, ptrs2, p2, entry2)
912 (s64) p2.ptr.offset + p2.crc.offset - bkey_start_offset(k2.k))
923 bch2_extent_has_ptr(struct bkey_s_c k1, struct extent_ptr_decoded p1, struct bkey_s k2)
925 struct bkey_ptrs ptrs2 = bch2_bkey_ptrs(k2);
929 bkey_for_each_ptr_decode(k2.k, ptrs2, p2, entry2)
933 (s64) p2.ptr.offset + p2.crc.offset - bkey_start_offset(k2.k))