Commit e4900404 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] restore console log level when jbd raises it

(Vita Samel)

maybe the set function should return the old value instead ?
parent 1ece99ca
......@@ -1088,6 +1088,7 @@ int journal_dirty_metadata(handle_t *handle, struct buffer_head *bh)
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 @@ int journal_dirty_metadata(handle_t *handle, struct buffer_head *bh)
jbd_unlock_bh_state(bh);
out:
JBUFFER_TRACE(jh, "exit");
console_loglevel = console_loglevel_saved;
return 0;
}
......
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