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

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2021-03-19 16:37:24 -04:00 committed by Kent Overstreet
parent 7e6dbac982
commit d361a26d02

View File

@ -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) {