aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/journal.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/jbd2/journal.c')
-rw-r--r--fs/jbd2/journal.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
index 78d63b818f0b..8f530cc66d34 100644
--- a/fs/jbd2/journal.c
+++ b/fs/jbd2/journal.c
@@ -528,7 +528,7 @@ int jbd2_log_wait_commit(journal_t *journal, tid_t tid)
528{ 528{
529 int err = 0; 529 int err = 0;
530 530
531#ifdef CONFIG_JBD_DEBUG 531#ifdef CONFIG_JBD2_DEBUG
532 spin_lock(&journal->j_state_lock); 532 spin_lock(&journal->j_state_lock);
533 if (!tid_geq(journal->j_commit_request, tid)) { 533 if (!tid_geq(journal->j_commit_request, tid)) {
534 printk(KERN_EMERG 534 printk(KERN_EMERG
@@ -1709,7 +1709,7 @@ void jbd2_slab_free(void *ptr, size_t size)
1709 * Journal_head storage management 1709 * Journal_head storage management
1710 */ 1710 */
1711static struct kmem_cache *jbd2_journal_head_cache; 1711static struct kmem_cache *jbd2_journal_head_cache;
1712#ifdef CONFIG_JBD_DEBUG 1712#ifdef CONFIG_JBD2_DEBUG
1713static atomic_t nr_journal_heads = ATOMIC_INIT(0); 1713static atomic_t nr_journal_heads = ATOMIC_INIT(0);
1714#endif 1714#endif
1715 1715
@@ -1747,7 +1747,7 @@ static struct journal_head *journal_alloc_journal_head(void)
1747 struct journal_head *ret; 1747 struct journal_head *ret;
1748 static unsigned long last_warning; 1748 static unsigned long last_warning;
1749 1749
1750#ifdef CONFIG_JBD_DEBUG 1750#ifdef CONFIG_JBD2_DEBUG
1751 atomic_inc(&nr_journal_heads); 1751 atomic_inc(&nr_journal_heads);
1752#endif 1752#endif
1753 ret = kmem_cache_alloc(jbd2_journal_head_cache, GFP_NOFS); 1753 ret = kmem_cache_alloc(jbd2_journal_head_cache, GFP_NOFS);
@@ -1768,7 +1768,7 @@ static struct journal_head *journal_alloc_journal_head(void)
1768 1768
1769static void journal_free_journal_head(struct journal_head *jh) 1769static void journal_free_journal_head(struct journal_head *jh)
1770{ 1770{
1771#ifdef CONFIG_JBD_DEBUG 1771#ifdef CONFIG_JBD2_DEBUG
1772 atomic_dec(&nr_journal_heads); 1772 atomic_dec(&nr_journal_heads);
1773 memset(jh, JBD_POISON_FREE, sizeof(*jh)); 1773 memset(jh, JBD_POISON_FREE, sizeof(*jh));
1774#endif 1774#endif
@@ -1953,12 +1953,12 @@ void jbd2_journal_put_journal_head(struct journal_head *jh)
1953/* 1953/*
1954 * /proc tunables 1954 * /proc tunables
1955 */ 1955 */
1956#if defined(CONFIG_JBD_DEBUG) 1956#if defined(CONFIG_JBD2_DEBUG)
1957int jbd2_journal_enable_debug; 1957int jbd2_journal_enable_debug;
1958EXPORT_SYMBOL(jbd2_journal_enable_debug); 1958EXPORT_SYMBOL(jbd2_journal_enable_debug);
1959#endif 1959#endif
1960 1960
1961#if defined(CONFIG_JBD_DEBUG) && defined(CONFIG_PROC_FS) 1961#if defined(CONFIG_JBD2_DEBUG) && defined(CONFIG_PROC_FS)
1962 1962
1963static struct proc_dir_entry *proc_jbd_debug; 1963static struct proc_dir_entry *proc_jbd_debug;
1964 1964
@@ -2073,7 +2073,7 @@ static int __init journal_init(void)
2073 2073
2074static void __exit journal_exit(void) 2074static void __exit journal_exit(void)
2075{ 2075{
2076#ifdef CONFIG_JBD_DEBUG 2076#ifdef CONFIG_JBD2_DEBUG
2077 int n = atomic_read(&nr_journal_heads); 2077 int n = atomic_read(&nr_journal_heads);
2078 if (n) 2078 if (n)
2079 printk(KERN_EMERG "JBD: leaked %d journal_heads!\n", n); 2079 printk(KERN_EMERG "JBD: leaked %d journal_heads!\n", n);