Lines Matching refs:p2
158 const struct extent_ptr_decoded p2, in ptr_better() argument
161 struct bch_dev *ca2 = bch2_dev_rcu(c, p2.ptr.dev); in ptr_better()
168 return p1.do_ec_reconstruct > p2.do_ec_reconstruct; in ptr_better()
170 if (unlikely(p1.do_ec_reconstruct || p2.do_ec_reconstruct)) in ptr_better()
171 return p1.do_ec_reconstruct < p2.do_ec_reconstruct; in ptr_better()
173 int crc_retry_delta = (int) p1.crc_retry_nr - (int) p2.crc_retry_nr; in ptr_better()
1055 struct extent_ptr_decoded p1, p2; in bch2_extents_match() local
1061 bkey_for_each_ptr_decode(k2.k, ptrs2, p2, entry2) in bch2_extents_match()
1062 if (p1.ptr.dev == p2.ptr.dev && in bch2_extents_match()
1063 p1.ptr.gen == p2.ptr.gen && in bch2_extents_match()
1072 (s64) p2.ptr.offset + p2.crc.offset - bkey_start_offset(k2.k) && in bch2_extents_match()
1083 ((p1.ptr.offset >= p2.ptr.offset && in bch2_extents_match()
1084 p1.ptr.offset < p2.ptr.offset + p2.crc.compressed_size) || in bch2_extents_match()
1085 (p2.ptr.offset >= p1.ptr.offset && in bch2_extents_match()
1086 p2.ptr.offset < p1.ptr.offset + p1.crc.compressed_size))) in bch2_extents_match()
1101 struct extent_ptr_decoded p2; in bch2_extent_has_ptr() local
1103 bkey_for_each_ptr_decode(k2.k, ptrs2, p2, entry2) in bch2_extent_has_ptr()
1104 if (p1.ptr.dev == p2.ptr.dev && in bch2_extent_has_ptr()
1105 p1.ptr.gen == p2.ptr.gen && in bch2_extent_has_ptr()
1107 (s64) p2.ptr.offset + p2.crc.offset - bkey_start_offset(k2.k)) in bch2_extent_has_ptr()