Commit 7c221915 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] JBD: journal_dirty_metadata diagnostics

Try to trap some more state when an assertion which cannot happen happens.
parent a0d82c97
......@@ -1111,6 +1111,16 @@ int journal_dirty_metadata(handle_t *handle, struct buffer_head *bh)
if (jh->b_transaction == handle->h_transaction &&
jh->b_jlist == BJ_Metadata) {
JBUFFER_TRACE(jh, "fastpath");
console_verbose();
if (jh->b_transaction != journal->j_running_transaction) {
printk("jh->b_transaction=%p\n", jh->b_transaction);
printk("journal->j_running_transaction=%p\n",
journal->j_running_transaction);
printk("handle->h_transaction=%p\n",
handle->h_transaction);
printk("journal->j_committing_transaction=%p\n",
journal->j_committing_transaction);
}
J_ASSERT_JH(jh, jh->b_transaction ==
journal->j_running_transaction);
goto out_unlock_bh;
......
......@@ -604,5 +604,6 @@ EXPORT_SYMBOL(__per_cpu_offset);
/* debug */
EXPORT_SYMBOL(dump_stack);
EXPORT_SYMBOL(ptrace_notify);
EXPORT_SYMBOL(console_printk);
EXPORT_SYMBOL(current_kernel_time);
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