diff options
author | Chris Snook <csnook@redhat.com> | 2008-01-28 23:58:27 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-01-28 23:58:27 -0500 |
commit | 36df53f4a3e445175fc1e9d7f433599482ec6d7f (patch) | |
tree | 1910220814219b51d0a049269758e07ec46938df /include/linux/jbd2.h | |
parent | abcb2947c91130426539f209f7a473a67a1f6663 (diff) |
jbd2: Remove printk from J_ASSERT to preserve registers during BUG
Signed-off-by: Chris Snook <csnook@redhat.com>
Cc: "Stephen C. Tweedie" <sct@redhat.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'include/linux/jbd2.h')
-rw-r--r-- | include/linux/jbd2.h | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/include/linux/jbd2.h b/include/linux/jbd2.h index 06ef11457051..d5f7cff4cb28 100644 --- a/include/linux/jbd2.h +++ b/include/linux/jbd2.h | |||
@@ -256,17 +256,7 @@ typedef struct journal_superblock_s | |||
256 | #include <linux/fs.h> | 256 | #include <linux/fs.h> |
257 | #include <linux/sched.h> | 257 | #include <linux/sched.h> |
258 | 258 | ||
259 | #define JBD2_ASSERTIONS | 259 | #define J_ASSERT(assert) BUG_ON(!(assert)) |
260 | #ifdef JBD2_ASSERTIONS | ||
261 | #define J_ASSERT(assert) \ | ||
262 | do { \ | ||
263 | if (!(assert)) { \ | ||
264 | printk (KERN_EMERG \ | ||
265 | "Assertion failure in %s() at %s:%d: \"%s\"\n", \ | ||
266 | __FUNCTION__, __FILE__, __LINE__, # assert); \ | ||
267 | BUG(); \ | ||
268 | } \ | ||
269 | } while (0) | ||
270 | 260 | ||
271 | #if defined(CONFIG_BUFFER_DEBUG) | 261 | #if defined(CONFIG_BUFFER_DEBUG) |
272 | void buffer_assertion_failure(struct buffer_head *bh); | 262 | void buffer_assertion_failure(struct buffer_head *bh); |
@@ -282,10 +272,6 @@ void buffer_assertion_failure(struct buffer_head *bh); | |||
282 | #define J_ASSERT_JH(jh, expr) J_ASSERT(expr) | 272 | #define J_ASSERT_JH(jh, expr) J_ASSERT(expr) |
283 | #endif | 273 | #endif |
284 | 274 | ||
285 | #else | ||
286 | #define J_ASSERT(assert) do { } while (0) | ||
287 | #endif /* JBD2_ASSERTIONS */ | ||
288 | |||
289 | #if defined(JBD2_PARANOID_IOFAIL) | 275 | #if defined(JBD2_PARANOID_IOFAIL) |
290 | #define J_EXPECT(expr, why...) J_ASSERT(expr) | 276 | #define J_EXPECT(expr, why...) J_ASSERT(expr) |
291 | #define J_EXPECT_BH(bh, expr, why...) J_ASSERT_BH(bh, expr) | 277 | #define J_EXPECT_BH(bh, expr, why...) J_ASSERT_BH(bh, expr) |