From: Kent Overstreet Date: Sat, 7 Mar 2020 22:20:39 +0000 (-0500) Subject: bcachefs: Fix bch2_dump_bset() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=24e0c3f8da000a30ab9397af5f977bd4cd0422e0;p=linux.git 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 Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/bset.c b/fs/bcachefs/bset.c index b8fe361978ef2..fca713fe50fc3 100644 --- a/fs/bcachefs/bset.c +++ b/fs/bcachefs/bset.c @@ -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)); bch2_bkey_to_text(&PBUF(buf), &k); - printk(KERN_ERR "block %u key %5u: %s\n", set, - __btree_node_key_to_offset(b, _k), buf); + printk(KERN_ERR "block %u key %5zu: %s\n", set, + _k->_data - i->_data, buf); if (_n == vstruct_last(i)) continue;