Commit d361a26d authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Don't overwrite snapshot field in bch2_cut_back()

Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 7e6dbac9
......@@ -1183,7 +1183,7 @@ int bch2_cut_back_s(struct bpos where, struct bkey_s k)
len = where.offset - bkey_start_offset(k.k);
k.k->p = where;
k.k->p.offset = where.offset;
k.k->size = len;
if (!len) {
......
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