aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/transaction.c
diff options
context:
space:
mode:
authorEryu Guan <guaneryu@gmail.com>2011-11-01 19:09:18 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-11-01 19:09:18 -0400
commitf2a44523b20f323e4aef7c16261d34d6f0a4bf06 (patch)
treeb7b46aefb3c91ab9f5462bd990ba02523c60ba96 /fs/jbd2/transaction.c
parent8762202dd0d6e46854f786bdb6fb3780a1625efe (diff)
jbd2: Unify log messages in jbd2 code
Some jbd2 code prints out kernel messages with "JBD2: " prefix, at the same time other jbd2 code prints with "JBD: " prefix. Unify the prefix to "JBD2: ". Signed-off-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/jbd2/transaction.c')
-rw-r--r--fs/jbd2/transaction.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c
index 1e5c5ead5b0d..a0e41a4c080e 100644
--- a/fs/jbd2/transaction.c
+++ b/fs/jbd2/transaction.c
@@ -125,7 +125,7 @@ static int start_this_handle(journal_t *journal, handle_t *handle,
125 unsigned long ts = jiffies; 125 unsigned long ts = jiffies;
126 126
127 if (nblocks > journal->j_max_transaction_buffers) { 127 if (nblocks > journal->j_max_transaction_buffers) {
128 printk(KERN_ERR "JBD: %s wants too many credits (%d > %d)\n", 128 printk(KERN_ERR "JBD2: %s wants too many credits (%d > %d)\n",
129 current->comm, nblocks, 129 current->comm, nblocks,
130 journal->j_max_transaction_buffers); 130 journal->j_max_transaction_buffers);
131 return -ENOSPC; 131 return -ENOSPC;
@@ -564,7 +564,7 @@ static void warn_dirty_buffer(struct buffer_head *bh)
564 char b[BDEVNAME_SIZE]; 564 char b[BDEVNAME_SIZE];
565 565
566 printk(KERN_WARNING 566 printk(KERN_WARNING
567 "JBD: Spotted dirty metadata buffer (dev = %s, blocknr = %llu). " 567 "JBD2: Spotted dirty metadata buffer (dev = %s, blocknr = %llu). "
568 "There's a risk of filesystem corruption in case of system " 568 "There's a risk of filesystem corruption in case of system "
569 "crash.\n", 569 "crash.\n",
570 bdevname(bh->b_bdev, b), (unsigned long long)bh->b_blocknr); 570 bdevname(bh->b_bdev, b), (unsigned long long)bh->b_blocknr);