Lines Matching refs:idx
39 bkey_fsck_err_on(le64_to_cpu(p.v->idx) < le32_to_cpu(p.v->front_pad),
41 "idx < front_pad (%llu < %u)",
42 le64_to_cpu(p.v->idx), le32_to_cpu(p.v->front_pad));
52 prt_printf(out, "idx %llu front_pad %u back_pad %u",
53 le64_to_cpu(p.v->idx),
69 if (le64_to_cpu(l.v->idx) + l.k->size != le64_to_cpu(r.v->idx))
77 struct bkey_s_c_reflink_p p, u64 *idx,
89 BTREE_ID_reflink, POS(0, *idx),
100 *idx, buf.buf);
109 *idx, buf.buf);
119 le64_to_cpu(v->idx) - bkey_start_offset(&k->k));
124 k->k.p.offset - p.k->size - le64_to_cpu(v->idx));
136 *idx = k->k.p.offset;
144 struct bkey_s_c_reflink_p p, u64 *idx,
151 u64 start = le64_to_cpu(p.v->idx);
152 u64 end = le64_to_cpu(p.v->idx) + p.k->size;
162 if (*idx < next_idx)
169 *idx = r->offset;
179 *idx, next_idx)) {
187 } else if (*idx >= end) {
188 bkey_i_to_reflink_p(update)->v.back_pad = cpu_to_le32(*idx - end);
199 *idx = next_idx;
214 u64 idx = le64_to_cpu(p.v->idx) - le32_to_cpu(p.v->front_pad);
215 u64 end = le64_to_cpu(p.v->idx) + p.k->size + le32_to_cpu(p.v->back_pad);
218 while (idx < end && !ret)
219 ret = trans_trigger_reflink_p_segment(trans, p, &idx, flags);
228 if (ref->offset <= idx)
234 while (idx < end && !ret)
235 ret = gc_trigger_reflink_p_segment(trans, p, &idx, flags, l++);
400 r_p->v.idx = cpu_to_le64(bkey_start_offset(&r_v->k));
539 u64 offset = le64_to_cpu(src_p.v->idx) +
543 dst_p->v.idx = cpu_to_le64(offset);