summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/bkey.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-08-14 20:44:17 +0200
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:09:38 +0200
commitd0b50524f1d9b60318b92830546b45cd3325cfe2 (patch)
tree06b1e2c3ee3838177342d1139be73713e65a5cf9 /fs/bcachefs/bkey.h
parentbcachefs: Add assertions for unexpected transaction restarts (diff)
downloadlinux-d0b50524f1d9b60318b92830546b45cd3325cfe2.tar.xz
linux-d0b50524f1d9b60318b92830546b45cd3325cfe2.zip
bcachefs: bch2_bkey_packed_to_binary_text()
For debugging the eytzinger search tree code, and low level bkey packing code, it can be helpful to see things in binary: this patch improves our helpers for doing so. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/bkey.h')
-rw-r--r--fs/bcachefs/bkey.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/bcachefs/bkey.h b/fs/bcachefs/bkey.h
index 8e9405f89537..2e7e6b6b4af7 100644
--- a/fs/bcachefs/bkey.h
+++ b/fs/bcachefs/bkey.h
@@ -20,7 +20,9 @@
#endif
#endif
-void bch2_to_binary(char *, const u64 *, unsigned);
+void bch2_bkey_packed_to_binary_text(struct printbuf *,
+ const struct bkey_format *,
+ const struct bkey_packed *);
/* bkey with split value, const */
struct bkey_s_c {