diff options
| -rw-r--r-- | fs/jbd2/journal.c | 8 | ||||
| -rw-r--r-- | fs/jbd2/transaction.c | 10 |
2 files changed, 8 insertions, 10 deletions
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c index 52032647dd4a..f66faedce6f0 100644 --- a/fs/jbd2/journal.c +++ b/fs/jbd2/journal.c | |||
| @@ -702,7 +702,7 @@ int jbd2_log_wait_commit(journal_t *journal, tid_t tid) | |||
| 702 | read_lock(&journal->j_state_lock); | 702 | read_lock(&journal->j_state_lock); |
| 703 | #ifdef CONFIG_JBD2_DEBUG | 703 | #ifdef CONFIG_JBD2_DEBUG |
| 704 | if (!tid_geq(journal->j_commit_request, tid)) { | 704 | if (!tid_geq(journal->j_commit_request, tid)) { |
| 705 | printk(KERN_EMERG | 705 | printk(KERN_ERR |
| 706 | "%s: error: j_commit_request=%d, tid=%d\n", | 706 | "%s: error: j_commit_request=%d, tid=%d\n", |
| 707 | __func__, journal->j_commit_request, tid); | 707 | __func__, journal->j_commit_request, tid); |
| 708 | } | 708 | } |
| @@ -718,10 +718,8 @@ int jbd2_log_wait_commit(journal_t *journal, tid_t tid) | |||
| 718 | } | 718 | } |
| 719 | read_unlock(&journal->j_state_lock); | 719 | read_unlock(&journal->j_state_lock); |
| 720 | 720 | ||
| 721 | if (unlikely(is_journal_aborted(journal))) { | 721 | if (unlikely(is_journal_aborted(journal))) |
| 722 | printk(KERN_EMERG "journal commit I/O error\n"); | ||
| 723 | err = -EIO; | 722 | err = -EIO; |
| 724 | } | ||
| 725 | return err; | 723 | return err; |
| 726 | } | 724 | } |
| 727 | 725 | ||
| @@ -2645,7 +2643,7 @@ static void __exit journal_exit(void) | |||
| 2645 | #ifdef CONFIG_JBD2_DEBUG | 2643 | #ifdef CONFIG_JBD2_DEBUG |
| 2646 | int n = atomic_read(&nr_journal_heads); | 2644 | int n = atomic_read(&nr_journal_heads); |
| 2647 | if (n) | 2645 | if (n) |
| 2648 | printk(KERN_EMERG "JBD2: leaked %d journal_heads!\n", n); | 2646 | printk(KERN_ERR "JBD2: leaked %d journal_heads!\n", n); |
| 2649 | #endif | 2647 | #endif |
| 2650 | jbd2_remove_jbd_stats_proc_entry(); | 2648 | jbd2_remove_jbd_stats_proc_entry(); |
| 2651 | jbd2_journal_destroy_caches(); | 2649 | jbd2_journal_destroy_caches(); |
diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c index b0b74e58697b..80797cfa8c49 100644 --- a/fs/jbd2/transaction.c +++ b/fs/jbd2/transaction.c | |||
| @@ -932,7 +932,7 @@ repeat: | |||
| 932 | jbd2_alloc(jh2bh(jh)->b_size, | 932 | jbd2_alloc(jh2bh(jh)->b_size, |
| 933 | GFP_NOFS); | 933 | GFP_NOFS); |
| 934 | if (!frozen_buffer) { | 934 | if (!frozen_buffer) { |
| 935 | printk(KERN_EMERG | 935 | printk(KERN_ERR |
| 936 | "%s: OOM for frozen_buffer\n", | 936 | "%s: OOM for frozen_buffer\n", |
| 937 | __func__); | 937 | __func__); |
| 938 | JBUFFER_TRACE(jh, "oom!"); | 938 | JBUFFER_TRACE(jh, "oom!"); |
| @@ -1166,7 +1166,7 @@ repeat: | |||
| 1166 | if (!jh->b_committed_data) { | 1166 | if (!jh->b_committed_data) { |
| 1167 | committed_data = jbd2_alloc(jh2bh(jh)->b_size, GFP_NOFS); | 1167 | committed_data = jbd2_alloc(jh2bh(jh)->b_size, GFP_NOFS); |
| 1168 | if (!committed_data) { | 1168 | if (!committed_data) { |
| 1169 | printk(KERN_EMERG "%s: No memory for committed data\n", | 1169 | printk(KERN_ERR "%s: No memory for committed data\n", |
| 1170 | __func__); | 1170 | __func__); |
| 1171 | err = -ENOMEM; | 1171 | err = -ENOMEM; |
| 1172 | goto out; | 1172 | goto out; |
| @@ -1308,7 +1308,7 @@ int jbd2_journal_dirty_metadata(handle_t *handle, struct buffer_head *bh) | |||
| 1308 | JBUFFER_TRACE(jh, "fastpath"); | 1308 | JBUFFER_TRACE(jh, "fastpath"); |
| 1309 | if (unlikely(jh->b_transaction != | 1309 | if (unlikely(jh->b_transaction != |
| 1310 | journal->j_running_transaction)) { | 1310 | journal->j_running_transaction)) { |
| 1311 | printk(KERN_EMERG "JBD: %s: " | 1311 | printk(KERN_ERR "JBD: %s: " |
| 1312 | "jh->b_transaction (%llu, %p, %u) != " | 1312 | "jh->b_transaction (%llu, %p, %u) != " |
| 1313 | "journal->j_running_transaction (%p, %u)", | 1313 | "journal->j_running_transaction (%p, %u)", |
| 1314 | journal->j_devname, | 1314 | journal->j_devname, |
| @@ -1335,7 +1335,7 @@ int jbd2_journal_dirty_metadata(handle_t *handle, struct buffer_head *bh) | |||
| 1335 | JBUFFER_TRACE(jh, "already on other transaction"); | 1335 | JBUFFER_TRACE(jh, "already on other transaction"); |
| 1336 | if (unlikely(jh->b_transaction != | 1336 | if (unlikely(jh->b_transaction != |
| 1337 | journal->j_committing_transaction)) { | 1337 | journal->j_committing_transaction)) { |
| 1338 | printk(KERN_EMERG "JBD: %s: " | 1338 | printk(KERN_ERR "JBD: %s: " |
| 1339 | "jh->b_transaction (%llu, %p, %u) != " | 1339 | "jh->b_transaction (%llu, %p, %u) != " |
| 1340 | "journal->j_committing_transaction (%p, %u)", | 1340 | "journal->j_committing_transaction (%p, %u)", |
| 1341 | journal->j_devname, | 1341 | journal->j_devname, |
| @@ -1348,7 +1348,7 @@ int jbd2_journal_dirty_metadata(handle_t *handle, struct buffer_head *bh) | |||
| 1348 | ret = -EINVAL; | 1348 | ret = -EINVAL; |
| 1349 | } | 1349 | } |
| 1350 | if (unlikely(jh->b_next_transaction != transaction)) { | 1350 | if (unlikely(jh->b_next_transaction != transaction)) { |
| 1351 | printk(KERN_EMERG "JBD: %s: " | 1351 | printk(KERN_ERR "JBD: %s: " |
| 1352 | "jh->b_next_transaction (%llu, %p, %u) != " | 1352 | "jh->b_next_transaction (%llu, %p, %u) != " |
| 1353 | "transaction (%p, %u)", | 1353 | "transaction (%p, %u)", |
| 1354 | journal->j_devname, | 1354 | journal->j_devname, |
