mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue