[JBD] [PATCH] don't print all kernel messages to console

Vitezslav Samel (samel@mail.cz)
Mon, 14 Jul 2003 16:27:19 +0200


Starting with 2.5.73 kernel spits all messages also to console. Problem is
in fs/jbd/transaction.c:journal_dirty_metadata(). There is call to
console_verbose() but current state of console logging is not saved. To fix
this you can remove offending call or apply attached patch. Please, forward
either solution to the Linus' tree.

Vita Samel

diff -urN clean-2.6.0-test1/fs/jbd/transaction.c linux-2.6.0-test1/fs/jbd/transaction.c
--- clean-2.6.0-test1/fs/jbd/transaction.c Mon Jul 14 13:52:46 2003
+++ linux-2.6.0-test1/fs/jbd/transaction.c Mon Jul 14 13:56:18 2003
@@ -1088,6 +1088,7 @@
transaction_t *transaction = handle->h_transaction;
journal_t *journal = transaction->t_journal;
struct journal_head *jh = bh2jh(bh);
+ int console_loglevel_saved = console_loglevel;

jbd_debug(5, "journal_head %p\n", jh);
JBUFFER_TRACE(jh, "entry");
@@ -1156,6 +1157,7 @@
JBUFFER_TRACE(jh, "exit");
+ console_loglevel = console_loglevel_saved;
return 0;

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/