mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 19:26:01 -04: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:
committed by
Kent Overstreet
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) {
|
||||
|
||||
Reference in New Issue
Block a user