Commit 83bb5853 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Fix repair path for missing indirect extents

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 6f5869ff
......@@ -185,8 +185,7 @@ static s64 gc_trigger_reflink_p_segment(struct btree_trans *trans,
} else {
bkey_error_init(update);
update->k.p = p.k->p;
update->k.p.offset = next_idx;
update->k.size = next_idx - *idx;
update->k.size = p.k->size;
set_bkey_val_u64s(&update->k, 0);
}
......
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