Commit d04d2727 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: bch2_dump_bset() doesn't choke on u64s == 0

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 4819b66e
......@@ -68,6 +68,12 @@ void bch2_dump_bset(struct bch_fs *c, struct btree *b,
_k = _n) {
_n = bkey_p_next(_k);
if (!_k->u64s) {
printk(KERN_ERR "block %u key %5zu - u64s 0? aieee!\n", set,
_k->_data - i->_data);
break;
}
k = bkey_disassemble(b, _k, &uk);
printbuf_reset(&buf);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment