aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/jbd.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/include/linux/jbd.h b/include/linux/jbd.h
index a3abf51e488f..d77f67d954f8 100644
--- a/include/linux/jbd.h
+++ b/include/linux/jbd.h
@@ -248,17 +248,7 @@ typedef struct journal_superblock_s
248#include <linux/fs.h> 248#include <linux/fs.h>
249#include <linux/sched.h> 249#include <linux/sched.h>
250 250
251#define JBD_ASSERTIONS 251#define J_ASSERT(assert) BUG_ON(!(assert))
252#ifdef JBD_ASSERTIONS
253#define J_ASSERT(assert) \
254do { \
255 if (!(assert)) { \
256 printk (KERN_EMERG \
257 "Assertion failure in %s() at %s:%d: \"%s\"\n", \
258 __FUNCTION__, __FILE__, __LINE__, # assert); \
259 BUG(); \
260 } \
261} while (0)
262 252
263#if defined(CONFIG_BUFFER_DEBUG) 253#if defined(CONFIG_BUFFER_DEBUG)
264void buffer_assertion_failure(struct buffer_head *bh); 254void buffer_assertion_failure(struct buffer_head *bh);
@@ -274,10 +264,6 @@ void buffer_assertion_failure(struct buffer_head *bh);
274#define J_ASSERT_JH(jh, expr) J_ASSERT(expr) 264#define J_ASSERT_JH(jh, expr) J_ASSERT(expr)
275#endif 265#endif
276 266
277#else
278#define J_ASSERT(assert) do { } while (0)
279#endif /* JBD_ASSERTIONS */
280
281#if defined(JBD_PARANOID_IOFAIL) 267#if defined(JBD_PARANOID_IOFAIL)
282#define J_EXPECT(expr, why...) J_ASSERT(expr) 268#define J_EXPECT(expr, why...) J_ASSERT(expr)
283#define J_EXPECT_BH(bh, expr, why...) J_ASSERT_BH(bh, expr) 269#define J_EXPECT_BH(bh, expr, why...) J_ASSERT_BH(bh, expr)