mirror of
https://github.com/torvalds/linux.git
synced 2024-12-13 22:53:20 +00:00
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:
parent
7e6dbac982
commit
d361a26d02
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user