Commit 58705da6 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: kill EBUG_ON() redefinition in bkey.c

our debug mode assertions in bkey.c haven't been getting run, whoops
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent e691b391
...@@ -7,14 +7,6 @@ ...@@ -7,14 +7,6 @@
#include "bset.h" #include "bset.h"
#include "util.h" #include "util.h"
#undef EBUG_ON
#ifdef DEBUG_BKEYS
#define EBUG_ON(cond) BUG_ON(cond)
#else
#define EBUG_ON(cond)
#endif
const struct bkey_format bch2_bkey_format_current = BKEY_FORMAT_CURRENT; const struct bkey_format bch2_bkey_format_current = BKEY_FORMAT_CURRENT;
void bch2_bkey_packed_to_binary_text(struct printbuf *out, void bch2_bkey_packed_to_binary_text(struct printbuf *out,
...@@ -601,7 +593,14 @@ struct bkey_format bch2_bkey_format_done(struct bkey_format_state *s) ...@@ -601,7 +593,14 @@ struct bkey_format bch2_bkey_format_done(struct bkey_format_state *s)
} }
} }
EBUG_ON(bch2_bkey_format_validate(&ret)); #ifdef CONFIG_BCACHEFS_DEBUG
{
struct printbuf buf = PRINTBUF;
BUG_ON(bch2_bkey_format_validate(&ret, &buf));
printbuf_exit(&buf);
}
#endif
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment