diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-04-09 20:11:10 -0800 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-04-09 20:12:37 -0800 |
commit | e783d814e83b2309930e1f6459212da6da8c8a54 (patch) | |
tree | 92c5b4b6e1c9e1e79db85470db934e34975e1c57 /libbcachefs/bset.h | |
parent | 2615d73a7428a08abdd058c875067847bf93d55c (diff) |
Update bcachefs sources to da037866e6
Diffstat (limited to 'libbcachefs/bset.h')
-rw-r--r-- | libbcachefs/bset.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libbcachefs/bset.h b/libbcachefs/bset.h index 76a83fcb..660a7283 100644 --- a/libbcachefs/bset.h +++ b/libbcachefs/bset.h @@ -191,6 +191,12 @@ bkey_unpack_key_format_checked(const struct btree *b, if (IS_ENABLED(CONFIG_BCACHEFS_DEBUG)) { 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))); } } |