Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71075
b: refs/heads/master
c: 6f38c74
h: refs/heads/master
i:
  71073: b4a6bf7
  71071: af8ce6a
v: v3
  • Loading branch information
Jose R. Santos authored and Theodore Ts'o committed Oct 17, 2007
1 parent 04b0d86 commit 1eb0c04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a7fa2baf8e2a6c0eb0a21f75e919c226179e8ff4
refs/heads/master: 6f38c74f5a01c7bccf58f9d7ee47ea24fb45752f
20 changes: 6 additions & 14 deletions trunk/fs/jbd2/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1864,16 +1864,14 @@ void jbd2_journal_put_journal_head(struct journal_head *jh)
/*
* debugfs tunables
*/
#if defined(CONFIG_JBD2_DEBUG)
u8 jbd2_journal_enable_debug;
#ifdef CONFIG_JBD2_DEBUG
u8 jbd2_journal_enable_debug __read_mostly;
EXPORT_SYMBOL(jbd2_journal_enable_debug);
#endif

#if defined(CONFIG_JBD2_DEBUG) && defined(CONFIG_DEBUG_FS)

#define JBD2_DEBUG_NAME "jbd2-debug"

struct dentry *jbd2_debugfs_dir, *jbd2_debug;
static struct dentry *jbd2_debugfs_dir;
static struct dentry *jbd2_debug;

static void __init jbd2_create_debugfs_entry(void)
{
Expand All @@ -1886,24 +1884,18 @@ static void __init jbd2_create_debugfs_entry(void)

static void __exit jbd2_remove_debugfs_entry(void)
{
if (jbd2_debug)
debugfs_remove(jbd2_debug);
if (jbd2_debugfs_dir)
debugfs_remove(jbd2_debugfs_dir);
debugfs_remove(jbd2_debug);
debugfs_remove(jbd2_debugfs_dir);
}

#else

static void __init jbd2_create_debugfs_entry(void)
{
do {
} while (0);
}

static void __exit jbd2_remove_debugfs_entry(void)
{
do {
} while (0);
}

#endif
Expand Down

0 comments on commit 1eb0c04

Please sign in to comment.