bcachefs: Fix bch2_dump_bset()
It's used in the write path when the bset isn't in the btree node buffer. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
27beb81023
commit
24e0c3f8da
@ -67,8 +67,8 @@ void bch2_dump_bset(struct btree *b, struct bset *i, unsigned set)
|
|||||||
_n = bkey_next_skip_noops(_k, vstruct_last(i));
|
_n = bkey_next_skip_noops(_k, vstruct_last(i));
|
||||||
|
|
||||||
bch2_bkey_to_text(&PBUF(buf), &k);
|
bch2_bkey_to_text(&PBUF(buf), &k);
|
||||||
printk(KERN_ERR "block %u key %5u: %s\n", set,
|
printk(KERN_ERR "block %u key %5zu: %s\n", set,
|
||||||
__btree_node_key_to_offset(b, _k), buf);
|
_k->_data - i->_data, buf);
|
||||||
|
|
||||||
if (_n == vstruct_last(i))
|
if (_n == vstruct_last(i))
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user