From: "Vitezslav Samel" <samel@mail.cz>
To: Andrew Morton <akpm@digeo.com>
Cc: linux-kernel@vger.kernel.org
Subject: [JBD] [PATCH] don't print all kernel messages to console
Date: Mon, 14 Jul 2003 16:27:19 +0200 [thread overview]
Message-ID: <20030714142719.GA8431@pc11.op.pod.cz> (raw)
Hi!
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.
Cheers,
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 @@
jbd_unlock_bh_state(bh);
out:
JBUFFER_TRACE(jh, "exit");
+ console_loglevel = console_loglevel_saved;
return 0;
}
reply other threads:[~2003-07-14 14:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030714142719.GA8431@pc11.op.pod.cz \
--to=samel@mail.cz \
--cc=akpm@digeo.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®