diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-03-07 17:20:39 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:36 -0400 |
commit | 24e0c3f8da000a30ab9397af5f977bd4cd0422e0 (patch) | |
tree | f88816e82c946a0aab0246f68b51f19cea8faedf /fs/bcachefs/bset.c | |
parent | 27beb810235615820584e15afc31e130e90793f8 (diff) | |
download | linux-24e0c3f8da000a30ab9397af5f977bd4cd0422e0.tar.gz linux-24e0c3f8da000a30ab9397af5f977bd4cd0422e0.tar.bz2 linux-24e0c3f8da000a30ab9397af5f977bd4cd0422e0.zip |
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>
Diffstat (limited to 'fs/bcachefs/bset.c')
-rw-r--r-- | fs/bcachefs/bset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/bset.c b/fs/bcachefs/bset.c index b8fe361978ef..fca713fe50fc 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; |