diff options
author | Jose R. Santos <jrs@us.ibm.com> | 2007-07-18 08:57:06 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2007-07-18 08:57:06 -0400 |
commit | e23291b9120c11aafb2ee76fb71a062eb3c1056c (patch) | |
tree | 1a0f458c5c2803eb9a959e79622974cd5db4f985 | |
parent | eb40a09c679d7f9709f7087add57f2e1c7122bb3 (diff) |
jbd2: Fix CONFIG_JBD_DEBUG ifdef to be CONFIG_JBD2_DEBUG
When the JBD code was forked to create the new JBD2 code base, the
references to CONFIG_JBD_DEBUG where never changed to
CONFIG_JBD2_DEBUG. This patch fixes that.
Signed-off-by: Jose R. Santos <jrs@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rw-r--r-- | fs/ext4/balloc.c | 4 | ||||
-rw-r--r-- | fs/ext4/ioctl.c | 4 | ||||
-rw-r--r-- | fs/jbd2/journal.c | 14 | ||||
-rw-r--r-- | fs/jbd2/recovery.c | 2 | ||||
-rw-r--r-- | include/linux/ext4_fs.h | 4 | ||||
-rw-r--r-- | include/linux/ext4_fs_sb.h | 2 | ||||
-rw-r--r-- | include/linux/jbd2.h | 4 |
7 files changed, 17 insertions, 17 deletions
diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c index 9de54ae48dee..e53b4af52f11 100644 --- a/fs/ext4/balloc.c +++ b/fs/ext4/balloc.c | |||
@@ -517,7 +517,7 @@ do_more: | |||
517 | /* | 517 | /* |
518 | * An HJ special. This is expensive... | 518 | * An HJ special. This is expensive... |
519 | */ | 519 | */ |
520 | #ifdef CONFIG_JBD_DEBUG | 520 | #ifdef CONFIG_JBD2_DEBUG |
521 | jbd_unlock_bh_state(bitmap_bh); | 521 | jbd_unlock_bh_state(bitmap_bh); |
522 | { | 522 | { |
523 | struct buffer_head *debug_bh; | 523 | struct buffer_head *debug_bh; |
@@ -1597,7 +1597,7 @@ allocated: | |||
1597 | 1597 | ||
1598 | performed_allocation = 1; | 1598 | performed_allocation = 1; |
1599 | 1599 | ||
1600 | #ifdef CONFIG_JBD_DEBUG | 1600 | #ifdef CONFIG_JBD2_DEBUG |
1601 | { | 1601 | { |
1602 | struct buffer_head *debug_bh; | 1602 | struct buffer_head *debug_bh; |
1603 | 1603 | ||
diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c index 9737432f079d..5b00775d5096 100644 --- a/fs/ext4/ioctl.c +++ b/fs/ext4/ioctl.c | |||
@@ -141,7 +141,7 @@ flags_err: | |||
141 | ext4_journal_stop(handle); | 141 | ext4_journal_stop(handle); |
142 | return err; | 142 | return err; |
143 | } | 143 | } |
144 | #ifdef CONFIG_JBD_DEBUG | 144 | #ifdef CONFIG_JBD2_DEBUG |
145 | case EXT4_IOC_WAIT_FOR_READONLY: | 145 | case EXT4_IOC_WAIT_FOR_READONLY: |
146 | /* | 146 | /* |
147 | * This is racy - by the time we're woken up and running, | 147 | * This is racy - by the time we're woken up and running, |
@@ -283,7 +283,7 @@ long ext4_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) | |||
283 | case EXT4_IOC32_SETVERSION_OLD: | 283 | case EXT4_IOC32_SETVERSION_OLD: |
284 | cmd = EXT4_IOC_SETVERSION_OLD; | 284 | cmd = EXT4_IOC_SETVERSION_OLD; |
285 | break; | 285 | break; |
286 | #ifdef CONFIG_JBD_DEBUG | 286 | #ifdef CONFIG_JBD2_DEBUG |
287 | case EXT4_IOC32_WAIT_FOR_READONLY: | 287 | case EXT4_IOC32_WAIT_FOR_READONLY: |
288 | cmd = EXT4_IOC_WAIT_FOR_READONLY; | 288 | cmd = EXT4_IOC_WAIT_FOR_READONLY; |
289 | break; | 289 | break; |
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 | */ |
1711 | static struct kmem_cache *jbd2_journal_head_cache; | 1711 | static struct kmem_cache *jbd2_journal_head_cache; |
1712 | #ifdef CONFIG_JBD_DEBUG | 1712 | #ifdef CONFIG_JBD2_DEBUG |
1713 | static atomic_t nr_journal_heads = ATOMIC_INIT(0); | 1713 | static 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 | ||
1769 | static void journal_free_journal_head(struct journal_head *jh) | 1769 | static 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) |
1957 | int jbd2_journal_enable_debug; | 1957 | int jbd2_journal_enable_debug; |
1958 | EXPORT_SYMBOL(jbd2_journal_enable_debug); | 1958 | EXPORT_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 | ||
1963 | static struct proc_dir_entry *proc_jbd_debug; | 1963 | static struct proc_dir_entry *proc_jbd_debug; |
1964 | 1964 | ||
@@ -2073,7 +2073,7 @@ static int __init journal_init(void) | |||
2073 | 2073 | ||
2074 | static void __exit journal_exit(void) | 2074 | static 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); |
diff --git a/fs/jbd2/recovery.c b/fs/jbd2/recovery.c index 395c92a04ac9..e7730a045b93 100644 --- a/fs/jbd2/recovery.c +++ b/fs/jbd2/recovery.c | |||
@@ -295,7 +295,7 @@ int jbd2_journal_skip_recovery(journal_t *journal) | |||
295 | printk(KERN_ERR "JBD: error %d scanning journal\n", err); | 295 | printk(KERN_ERR "JBD: error %d scanning journal\n", err); |
296 | ++journal->j_transaction_sequence; | 296 | ++journal->j_transaction_sequence; |
297 | } else { | 297 | } else { |
298 | #ifdef CONFIG_JBD_DEBUG | 298 | #ifdef CONFIG_JBD2_DEBUG |
299 | int dropped = info.end_transaction - be32_to_cpu(sb->s_sequence); | 299 | int dropped = info.end_transaction - be32_to_cpu(sb->s_sequence); |
300 | #endif | 300 | #endif |
301 | jbd_debug(0, | 301 | jbd_debug(0, |
diff --git a/include/linux/ext4_fs.h b/include/linux/ext4_fs.h index 33b2b1a2d790..45ec7258b2b1 100644 --- a/include/linux/ext4_fs.h +++ b/include/linux/ext4_fs.h | |||
@@ -243,7 +243,7 @@ struct ext4_new_group_data { | |||
243 | #define EXT4_IOC_GROUP_ADD _IOW('f', 8,struct ext4_new_group_input) | 243 | #define EXT4_IOC_GROUP_ADD _IOW('f', 8,struct ext4_new_group_input) |
244 | #define EXT4_IOC_GETVERSION_OLD FS_IOC_GETVERSION | 244 | #define EXT4_IOC_GETVERSION_OLD FS_IOC_GETVERSION |
245 | #define EXT4_IOC_SETVERSION_OLD FS_IOC_SETVERSION | 245 | #define EXT4_IOC_SETVERSION_OLD FS_IOC_SETVERSION |
246 | #ifdef CONFIG_JBD_DEBUG | 246 | #ifdef CONFIG_JBD2_DEBUG |
247 | #define EXT4_IOC_WAIT_FOR_READONLY _IOR('f', 99, long) | 247 | #define EXT4_IOC_WAIT_FOR_READONLY _IOR('f', 99, long) |
248 | #endif | 248 | #endif |
249 | #define EXT4_IOC_GETRSVSZ _IOR('f', 5, long) | 249 | #define EXT4_IOC_GETRSVSZ _IOR('f', 5, long) |
@@ -259,7 +259,7 @@ struct ext4_new_group_data { | |||
259 | #define EXT4_IOC32_GETRSVSZ _IOR('f', 5, int) | 259 | #define EXT4_IOC32_GETRSVSZ _IOR('f', 5, int) |
260 | #define EXT4_IOC32_SETRSVSZ _IOW('f', 6, int) | 260 | #define EXT4_IOC32_SETRSVSZ _IOW('f', 6, int) |
261 | #define EXT4_IOC32_GROUP_EXTEND _IOW('f', 7, unsigned int) | 261 | #define EXT4_IOC32_GROUP_EXTEND _IOW('f', 7, unsigned int) |
262 | #ifdef CONFIG_JBD_DEBUG | 262 | #ifdef CONFIG_JBD2_DEBUG |
263 | #define EXT4_IOC32_WAIT_FOR_READONLY _IOR('f', 99, int) | 263 | #define EXT4_IOC32_WAIT_FOR_READONLY _IOR('f', 99, int) |
264 | #endif | 264 | #endif |
265 | #define EXT4_IOC32_GETVERSION_OLD FS_IOC32_GETVERSION | 265 | #define EXT4_IOC32_GETVERSION_OLD FS_IOC32_GETVERSION |
diff --git a/include/linux/ext4_fs_sb.h b/include/linux/ext4_fs_sb.h index 2347557a327a..0f7dc15924bf 100644 --- a/include/linux/ext4_fs_sb.h +++ b/include/linux/ext4_fs_sb.h | |||
@@ -73,7 +73,7 @@ struct ext4_sb_info { | |||
73 | struct list_head s_orphan; | 73 | struct list_head s_orphan; |
74 | unsigned long s_commit_interval; | 74 | unsigned long s_commit_interval; |
75 | struct block_device *journal_bdev; | 75 | struct block_device *journal_bdev; |
76 | #ifdef CONFIG_JBD_DEBUG | 76 | #ifdef CONFIG_JBD2_DEBUG |
77 | struct timer_list turn_ro_timer; /* For turning read-only (crash simulation) */ | 77 | struct timer_list turn_ro_timer; /* For turning read-only (crash simulation) */ |
78 | wait_queue_head_t ro_wait_queue; /* For people waiting for the fs to go read-only */ | 78 | wait_queue_head_t ro_wait_queue; /* For people waiting for the fs to go read-only */ |
79 | #endif | 79 | #endif |
diff --git a/include/linux/jbd2.h b/include/linux/jbd2.h index 0e0fedd2039a..a37aca31de46 100644 --- a/include/linux/jbd2.h +++ b/include/linux/jbd2.h | |||
@@ -50,11 +50,11 @@ | |||
50 | */ | 50 | */ |
51 | #define JBD_DEFAULT_MAX_COMMIT_AGE 5 | 51 | #define JBD_DEFAULT_MAX_COMMIT_AGE 5 |
52 | 52 | ||
53 | #ifdef CONFIG_JBD_DEBUG | 53 | #ifdef CONFIG_JBD2_DEBUG |
54 | /* | 54 | /* |
55 | * Define JBD_EXPENSIVE_CHECKING to enable more expensive internal | 55 | * Define JBD_EXPENSIVE_CHECKING to enable more expensive internal |
56 | * consistency checks. By default we don't do this unless | 56 | * consistency checks. By default we don't do this unless |
57 | * CONFIG_JBD_DEBUG is on. | 57 | * CONFIG_JBD2_DEBUG is on. |
58 | */ | 58 | */ |
59 | #define JBD_EXPENSIVE_CHECKING | 59 | #define JBD_EXPENSIVE_CHECKING |
60 | extern int jbd2_journal_enable_debug; | 60 | extern int jbd2_journal_enable_debug; |