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
@ -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) {
|
||||
clobber_u64s = k->u64s;
|
||||
goto overwrite;
|
||||
}
|
||||
|
||||
insert->k.needs_whiteout = k->needs_whiteout;
|
||||
k->needs_whiteout = false;
|
||||
k->type = KEY_TYPE_deleted;
|
||||
/*
|
||||
* XXX: we should be able to do this without two calls to
|
||||
|
Loading…
x
Reference in New Issue
Block a user