From a965ef4986243bb0490d5af0ae202e81871554e1 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Wed, 15 Jan 2020 22:53:49 -0500 Subject: bcachefs: Fix bch2_sort_keys() to not modify src keys Signed-off-by: Kent Overstreet Signed-off-by: Kent Overstreet --- fs/bcachefs/bset.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'fs/bcachefs/bset.h') diff --git a/fs/bcachefs/bset.h b/fs/bcachefs/bset.h index 5c3c5fbea4b7..50d0ce7d1afa 100644 --- a/fs/bcachefs/bset.h +++ b/fs/bcachefs/bset.h @@ -199,12 +199,6 @@ __bkey_unpack_key_format_checked(const struct btree *b, if (btree_keys_expensive_checks(b)) { struct bkey dst2 = __bch2_bkey_unpack_key(&b->format, src); - /* - * hack around a harmless race when compacting whiteouts - * for a write: - */ - dst2.needs_whiteout = dst->needs_whiteout; - BUG_ON(memcmp(dst, &dst2, sizeof(*dst))); } } -- cgit v1.2.3-58-ga151