diff options
Diffstat (limited to 'fs/jbd2/journal.c')
-rw-r--r-- | fs/jbd2/journal.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c index d6e93d00833e..0fa0123151d3 100644 --- a/fs/jbd2/journal.c +++ b/fs/jbd2/journal.c | |||
@@ -491,7 +491,7 @@ int __jbd2_log_start_commit(journal_t *journal, tid_t target) | |||
491 | */ | 491 | */ |
492 | 492 | ||
493 | journal->j_commit_request = target; | 493 | journal->j_commit_request = target; |
494 | jbd_debug(1, "JBD: requesting commit %d/%d\n", | 494 | jbd_debug(1, "JBD2: requesting commit %d/%d\n", |
495 | journal->j_commit_request, | 495 | journal->j_commit_request, |
496 | journal->j_commit_sequence); | 496 | journal->j_commit_sequence); |
497 | wake_up(&journal->j_wait_commit); | 497 | wake_up(&journal->j_wait_commit); |
@@ -500,7 +500,7 @@ int __jbd2_log_start_commit(journal_t *journal, tid_t target) | |||
500 | /* This should never happen, but if it does, preserve | 500 | /* This should never happen, but if it does, preserve |
501 | the evidence before kjournald goes into a loop and | 501 | the evidence before kjournald goes into a loop and |
502 | increments j_commit_sequence beyond all recognition. */ | 502 | increments j_commit_sequence beyond all recognition. */ |
503 | WARN_ONCE(1, "jbd: bad log_start_commit: %u %u %u %u\n", | 503 | WARN_ONCE(1, "JBD2: bad log_start_commit: %u %u %u %u\n", |
504 | journal->j_commit_request, | 504 | journal->j_commit_request, |
505 | journal->j_commit_sequence, | 505 | journal->j_commit_sequence, |
506 | target, journal->j_running_transaction ? | 506 | target, journal->j_running_transaction ? |
@@ -645,7 +645,7 @@ int jbd2_log_wait_commit(journal_t *journal, tid_t tid) | |||
645 | } | 645 | } |
646 | #endif | 646 | #endif |
647 | while (tid_gt(tid, journal->j_commit_sequence)) { | 647 | while (tid_gt(tid, journal->j_commit_sequence)) { |
648 | jbd_debug(1, "JBD: want %d, j_commit_sequence=%d\n", | 648 | jbd_debug(1, "JBD2: want %d, j_commit_sequence=%d\n", |
649 | tid, journal->j_commit_sequence); | 649 | tid, journal->j_commit_sequence); |
650 | wake_up(&journal->j_wait_commit); | 650 | wake_up(&journal->j_wait_commit); |
651 | read_unlock(&journal->j_state_lock); | 651 | read_unlock(&journal->j_state_lock); |
@@ -1093,7 +1093,7 @@ static int journal_reset(journal_t *journal) | |||
1093 | first = be32_to_cpu(sb->s_first); | 1093 | first = be32_to_cpu(sb->s_first); |
1094 | last = be32_to_cpu(sb->s_maxlen); | 1094 | last = be32_to_cpu(sb->s_maxlen); |
1095 | if (first + JBD2_MIN_JOURNAL_BLOCKS > last + 1) { | 1095 | if (first + JBD2_MIN_JOURNAL_BLOCKS > last + 1) { |
1096 | printk(KERN_ERR "JBD: Journal too short (blocks %llu-%llu).\n", | 1096 | printk(KERN_ERR "JBD2: Journal too short (blocks %llu-%llu).\n", |
1097 | first, last); | 1097 | first, last); |
1098 | journal_fail_superblock(journal); | 1098 | journal_fail_superblock(journal); |
1099 | return -EINVAL; | 1099 | return -EINVAL; |
@@ -1139,7 +1139,7 @@ void jbd2_journal_update_superblock(journal_t *journal, int wait) | |||
1139 | */ | 1139 | */ |
1140 | if (sb->s_start == 0 && journal->j_tail_sequence == | 1140 | if (sb->s_start == 0 && journal->j_tail_sequence == |
1141 | journal->j_transaction_sequence) { | 1141 | journal->j_transaction_sequence) { |
1142 | jbd_debug(1,"JBD: Skipping superblock update on recovered sb " | 1142 | jbd_debug(1, "JBD2: Skipping superblock update on recovered sb " |
1143 | "(start %ld, seq %d, errno %d)\n", | 1143 | "(start %ld, seq %d, errno %d)\n", |
1144 | journal->j_tail, journal->j_tail_sequence, | 1144 | journal->j_tail, journal->j_tail_sequence, |
1145 | journal->j_errno); | 1145 | journal->j_errno); |
@@ -1163,7 +1163,7 @@ void jbd2_journal_update_superblock(journal_t *journal, int wait) | |||
1163 | } | 1163 | } |
1164 | 1164 | ||
1165 | read_lock(&journal->j_state_lock); | 1165 | read_lock(&journal->j_state_lock); |
1166 | jbd_debug(1,"JBD: updating superblock (start %ld, seq %d, errno %d)\n", | 1166 | jbd_debug(1, "JBD2: updating superblock (start %ld, seq %d, errno %d)\n", |
1167 | journal->j_tail, journal->j_tail_sequence, journal->j_errno); | 1167 | journal->j_tail, journal->j_tail_sequence, journal->j_errno); |
1168 | 1168 | ||
1169 | sb->s_sequence = cpu_to_be32(journal->j_tail_sequence); | 1169 | sb->s_sequence = cpu_to_be32(journal->j_tail_sequence); |
@@ -1216,8 +1216,8 @@ static int journal_get_superblock(journal_t *journal) | |||
1216 | ll_rw_block(READ, 1, &bh); | 1216 | ll_rw_block(READ, 1, &bh); |
1217 | wait_on_buffer(bh); | 1217 | wait_on_buffer(bh); |
1218 | if (!buffer_uptodate(bh)) { | 1218 | if (!buffer_uptodate(bh)) { |
1219 | printk (KERN_ERR | 1219 | printk(KERN_ERR |
1220 | "JBD: IO error reading journal superblock\n"); | 1220 | "JBD2: IO error reading journal superblock\n"); |
1221 | goto out; | 1221 | goto out; |
1222 | } | 1222 | } |
1223 | } | 1223 | } |
@@ -1228,7 +1228,7 @@ static int journal_get_superblock(journal_t *journal) | |||
1228 | 1228 | ||
1229 | if (sb->s_header.h_magic != cpu_to_be32(JBD2_MAGIC_NUMBER) || | 1229 | if (sb->s_header.h_magic != cpu_to_be32(JBD2_MAGIC_NUMBER) || |
1230 | sb->s_blocksize != cpu_to_be32(journal->j_blocksize)) { | 1230 | sb->s_blocksize != cpu_to_be32(journal->j_blocksize)) { |
1231 | printk(KERN_WARNING "JBD: no valid journal superblock found\n"); | 1231 | printk(KERN_WARNING "JBD2: no valid journal superblock found\n"); |
1232 | goto out; | 1232 | goto out; |
1233 | } | 1233 | } |
1234 | 1234 | ||
@@ -1240,14 +1240,14 @@ static int journal_get_superblock(journal_t *journal) | |||
1240 | journal->j_format_version = 2; | 1240 | journal->j_format_version = 2; |
1241 | break; | 1241 | break; |
1242 | default: | 1242 | default: |
1243 | printk(KERN_WARNING "JBD: unrecognised superblock format ID\n"); | 1243 | printk(KERN_WARNING "JBD2: unrecognised superblock format ID\n"); |
1244 | goto out; | 1244 | goto out; |
1245 | } | 1245 | } |
1246 | 1246 | ||
1247 | if (be32_to_cpu(sb->s_maxlen) < journal->j_maxlen) | 1247 | if (be32_to_cpu(sb->s_maxlen) < journal->j_maxlen) |
1248 | journal->j_maxlen = be32_to_cpu(sb->s_maxlen); | 1248 | journal->j_maxlen = be32_to_cpu(sb->s_maxlen); |
1249 | else if (be32_to_cpu(sb->s_maxlen) > journal->j_maxlen) { | 1249 | else if (be32_to_cpu(sb->s_maxlen) > journal->j_maxlen) { |
1250 | printk (KERN_WARNING "JBD: journal file too short\n"); | 1250 | printk(KERN_WARNING "JBD2: journal file too short\n"); |
1251 | goto out; | 1251 | goto out; |
1252 | } | 1252 | } |
1253 | 1253 | ||
@@ -1318,8 +1318,8 @@ int jbd2_journal_load(journal_t *journal) | |||
1318 | ~cpu_to_be32(JBD2_KNOWN_ROCOMPAT_FEATURES)) || | 1318 | ~cpu_to_be32(JBD2_KNOWN_ROCOMPAT_FEATURES)) || |
1319 | (sb->s_feature_incompat & | 1319 | (sb->s_feature_incompat & |
1320 | ~cpu_to_be32(JBD2_KNOWN_INCOMPAT_FEATURES))) { | 1320 | ~cpu_to_be32(JBD2_KNOWN_INCOMPAT_FEATURES))) { |
1321 | printk (KERN_WARNING | 1321 | printk(KERN_WARNING |
1322 | "JBD: Unrecognised features on journal\n"); | 1322 | "JBD2: Unrecognised features on journal\n"); |
1323 | return -EINVAL; | 1323 | return -EINVAL; |
1324 | } | 1324 | } |
1325 | } | 1325 | } |
@@ -1354,7 +1354,7 @@ int jbd2_journal_load(journal_t *journal) | |||
1354 | return 0; | 1354 | return 0; |
1355 | 1355 | ||
1356 | recovery_error: | 1356 | recovery_error: |
1357 | printk (KERN_WARNING "JBD: recovery failed\n"); | 1357 | printk(KERN_WARNING "JBD2: recovery failed\n"); |
1358 | return -EIO; | 1358 | return -EIO; |
1359 | } | 1359 | } |
1360 | 1360 | ||
@@ -1585,7 +1585,7 @@ static int journal_convert_superblock_v1(journal_t *journal, | |||
1585 | struct buffer_head *bh; | 1585 | struct buffer_head *bh; |
1586 | 1586 | ||
1587 | printk(KERN_WARNING | 1587 | printk(KERN_WARNING |
1588 | "JBD: Converting superblock from version 1 to 2.\n"); | 1588 | "JBD2: Converting superblock from version 1 to 2.\n"); |
1589 | 1589 | ||
1590 | /* Pre-initialise new fields to zero */ | 1590 | /* Pre-initialise new fields to zero */ |
1591 | offset = ((char *) &(sb->s_feature_compat)) - ((char *) sb); | 1591 | offset = ((char *) &(sb->s_feature_compat)) - ((char *) sb); |
@@ -1702,7 +1702,7 @@ int jbd2_journal_wipe(journal_t *journal, int write) | |||
1702 | if (!journal->j_tail) | 1702 | if (!journal->j_tail) |
1703 | goto no_recovery; | 1703 | goto no_recovery; |
1704 | 1704 | ||
1705 | printk (KERN_WARNING "JBD: %s recovery information on journal\n", | 1705 | printk(KERN_WARNING "JBD2: %s recovery information on journal\n", |
1706 | write ? "Clearing" : "Ignoring"); | 1706 | write ? "Clearing" : "Ignoring"); |
1707 | 1707 | ||
1708 | err = jbd2_journal_skip_recovery(journal); | 1708 | err = jbd2_journal_skip_recovery(journal); |
@@ -2028,7 +2028,7 @@ static int journal_init_jbd2_journal_head_cache(void) | |||
2028 | retval = 0; | 2028 | retval = 0; |
2029 | if (!jbd2_journal_head_cache) { | 2029 | if (!jbd2_journal_head_cache) { |
2030 | retval = -ENOMEM; | 2030 | retval = -ENOMEM; |
2031 | printk(KERN_EMERG "JBD: no memory for journal_head cache\n"); | 2031 | printk(KERN_EMERG "JBD2: no memory for journal_head cache\n"); |
2032 | } | 2032 | } |
2033 | return retval; | 2033 | return retval; |
2034 | } | 2034 | } |
@@ -2391,7 +2391,7 @@ static void __exit journal_exit(void) | |||
2391 | #ifdef CONFIG_JBD2_DEBUG | 2391 | #ifdef CONFIG_JBD2_DEBUG |
2392 | int n = atomic_read(&nr_journal_heads); | 2392 | int n = atomic_read(&nr_journal_heads); |
2393 | if (n) | 2393 | if (n) |
2394 | printk(KERN_EMERG "JBD: leaked %d journal_heads!\n", n); | 2394 | printk(KERN_EMERG "JBD2: leaked %d journal_heads!\n", n); |
2395 | #endif | 2395 | #endif |
2396 | jbd2_remove_debugfs_entry(); | 2396 | jbd2_remove_debugfs_entry(); |
2397 | jbd2_remove_jbd_stats_proc_entry(); | 2397 | jbd2_remove_jbd_stats_proc_entry(); |