mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-08 14:23:19 +00:00
bcachefs: bch2_dump_bset() doesn't choke on u64s == 0
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
4819b66e29
commit
d04d272743
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user