summaryrefslogtreecommitdiff
path: root/libbcachefs/keylist.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2017-06-13 17:06:05 -0800
committerKent Overstreet <kent.overstreet@gmail.com>2017-06-13 17:41:59 -0800
commit38f22164a9a3f2f8e33af8e0cc3ce4f17ef99cde (patch)
tree3b5de0fc73f51199bea8fcb63ad97a5b01a7c4ca /libbcachefs/keylist.h
parent914c4d19ed4a1c64268c4c23609c43d3d6765969 (diff)
Update bcachefs sources to 6a25f7a00d bcachefs: fix ioctl code
Diffstat (limited to 'libbcachefs/keylist.h')
-rw-r--r--libbcachefs/keylist.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libbcachefs/keylist.h b/libbcachefs/keylist.h
index 66628058..87388c97 100644
--- a/libbcachefs/keylist.h
+++ b/libbcachefs/keylist.h
@@ -59,4 +59,10 @@ static inline struct bkey_i *bch2_keylist_front(struct keylist *l)
#define keylist_single(k) \
((struct keylist) { .keys = k, .top = bkey_next(k) })
+#ifdef CONFIG_BCACHEFS_DEBUG
+void bch2_verify_keylist_sorted(struct keylist *);
+#else
+static inline void bch2_verify_keylist_sorted(struct keylist *l) {}
+#endif
+
#endif /* _BCACHE_KEYLIST_H */