lkml.org 
[lkml]   [2003]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectPATCH: restore console log level when jbd raises it

(Vita Samel)

maybe the set function should return the old value instead ?

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.6.0-test1/fs/jbd/transaction.c linux-2.6.0-test1-ac2/fs/jbd/transaction.c
--- linux-2.6.0-test1/fs/jbd/transaction.c 2003-07-14 14:11:56.000000000 +0100
+++ linux-2.6.0-test1-ac2/fs/jbd/transaction.c 2003-07-15 17:29:25.000000000 +0100
@@ -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;
}

-
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/
\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.020 / U:0.644 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site