diff options
Diffstat (limited to 'include/linux/jbd.h')
| -rw-r--r-- | include/linux/jbd.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/include/linux/jbd.h b/include/linux/jbd.h index 331530cd3cc6..e06965081ba5 100644 --- a/include/linux/jbd.h +++ b/include/linux/jbd.h | |||
| @@ -31,6 +31,7 @@ | |||
| 31 | #include <linux/mutex.h> | 31 | #include <linux/mutex.h> |
| 32 | #include <linux/timer.h> | 32 | #include <linux/timer.h> |
| 33 | #include <linux/lockdep.h> | 33 | #include <linux/lockdep.h> |
| 34 | #include <linux/slab.h> | ||
| 34 | 35 | ||
| 35 | #define journal_oom_retry 1 | 36 | #define journal_oom_retry 1 |
| 36 | 37 | ||
| @@ -246,19 +247,8 @@ typedef struct journal_superblock_s | |||
| 246 | 247 | ||
| 247 | #define J_ASSERT(assert) BUG_ON(!(assert)) | 248 | #define J_ASSERT(assert) BUG_ON(!(assert)) |
| 248 | 249 | ||
| 249 | #if defined(CONFIG_BUFFER_DEBUG) | ||
| 250 | void buffer_assertion_failure(struct buffer_head *bh); | ||
| 251 | #define J_ASSERT_BH(bh, expr) \ | ||
| 252 | do { \ | ||
| 253 | if (!(expr)) \ | ||
| 254 | buffer_assertion_failure(bh); \ | ||
| 255 | J_ASSERT(expr); \ | ||
| 256 | } while (0) | ||
| 257 | #define J_ASSERT_JH(jh, expr) J_ASSERT_BH(jh2bh(jh), expr) | ||
| 258 | #else | ||
| 259 | #define J_ASSERT_BH(bh, expr) J_ASSERT(expr) | 250 | #define J_ASSERT_BH(bh, expr) J_ASSERT(expr) |
| 260 | #define J_ASSERT_JH(jh, expr) J_ASSERT(expr) | 251 | #define J_ASSERT_JH(jh, expr) J_ASSERT(expr) |
| 261 | #endif | ||
| 262 | 252 | ||
| 263 | #if defined(JBD_PARANOID_IOFAIL) | 253 | #if defined(JBD_PARANOID_IOFAIL) |
| 264 | #define J_EXPECT(expr, why...) J_ASSERT(expr) | 254 | #define J_EXPECT(expr, why...) J_ASSERT(expr) |
| @@ -437,9 +427,9 @@ struct transaction_s | |||
| 437 | enum { | 427 | enum { |
| 438 | T_RUNNING, | 428 | T_RUNNING, |
| 439 | T_LOCKED, | 429 | T_LOCKED, |
| 440 | T_RUNDOWN, | ||
| 441 | T_FLUSH, | 430 | T_FLUSH, |
| 442 | T_COMMIT, | 431 | T_COMMIT, |
| 432 | T_COMMIT_RECORD, | ||
| 443 | T_FINISHED | 433 | T_FINISHED |
| 444 | } t_state; | 434 | } t_state; |
| 445 | 435 | ||
| @@ -1001,6 +991,7 @@ int journal_start_commit(journal_t *journal, tid_t *tid); | |||
| 1001 | int journal_force_commit_nested(journal_t *journal); | 991 | int journal_force_commit_nested(journal_t *journal); |
| 1002 | int log_wait_commit(journal_t *journal, tid_t tid); | 992 | int log_wait_commit(journal_t *journal, tid_t tid); |
| 1003 | int log_do_checkpoint(journal_t *journal); | 993 | int log_do_checkpoint(journal_t *journal); |
| 994 | int journal_trans_will_send_data_barrier(journal_t *journal, tid_t tid); | ||
| 1004 | 995 | ||
| 1005 | void __log_wait_for_space(journal_t *journal); | 996 | void __log_wait_for_space(journal_t *journal); |
| 1006 | extern void __journal_drop_transaction(journal_t *, transaction_t *); | 997 | extern void __journal_drop_transaction(journal_t *, transaction_t *); |
