mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 02:09:42 +00:00
bcachefs: Don't lose needs_whiteout in overwrite path
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
a7b96ab020
commit
f2e8c69fcb
1 changed files with 3 additions and 2 deletions
|
@ -99,13 +99,14 @@ bool bch2_btree_bset_insert_key(struct btree_iter *iter,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
insert->k.needs_whiteout = k->needs_whiteout;
|
||||||
|
k->needs_whiteout = false;
|
||||||
|
|
||||||
if (k >= btree_bset_last(b)->start) {
|
if (k >= btree_bset_last(b)->start) {
|
||||||
clobber_u64s = k->u64s;
|
clobber_u64s = k->u64s;
|
||||||
goto overwrite;
|
goto overwrite;
|
||||||
}
|
}
|
||||||
|
|
||||||
insert->k.needs_whiteout = k->needs_whiteout;
|
|
||||||
k->needs_whiteout = false;
|
|
||||||
k->type = KEY_TYPE_deleted;
|
k->type = KEY_TYPE_deleted;
|
||||||
/*
|
/*
|
||||||
* XXX: we should be able to do this without two calls to
|
* XXX: we should be able to do this without two calls to
|
||||||
|
|
Loading…
Reference in a new issue