diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-03-06 02:53:25 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:56 -0400 |
commit | b65499b7b16b99575f1e7921da402b3b59c47de6 (patch) | |
tree | e39a571ca69316adaa908a9b2b21050d288313d3 /fs/bcachefs/debug.h | |
parent | a345b0f393da49be9d1110ec9e43066191f0e466 (diff) | |
download | lwn-b65499b7b16b99575f1e7921da402b3b59c47de6.tar.gz lwn-b65499b7b16b99575f1e7921da402b3b59c47de6.zip |
bcachefs: bch2_btree_node_ondisk_to_text()
Pulling out a helper from cmd_list.c, as the rest is being rewritten in
Rust but we're not ready to rewrite lower-level btree code in Rust.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/debug.h')
-rw-r--r-- | fs/bcachefs/debug.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/debug.h b/fs/bcachefs/debug.h index 0b86736e5e1b..2c37143b5fd1 100644 --- a/fs/bcachefs/debug.h +++ b/fs/bcachefs/debug.h @@ -9,6 +9,8 @@ struct btree; struct bch_fs; void __bch2_btree_verify(struct bch_fs *, struct btree *); +void bch2_btree_node_ondisk_to_text(struct printbuf *, struct bch_fs *, + const struct btree *); static inline void bch2_btree_verify(struct bch_fs *c, struct btree *b) { |