diff options
author | Eric Sandeen <sandeen@redhat.com> | 2013-04-22 12:12:31 -0400 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-05-06 15:55:16 -0400 |
commit | 6d49ba1b47b9c6822d08f90af6f1a2d8ca1cf533 (patch) | |
tree | 316890f9d5ce407a6767b279620ee3131b6c8e75 /fs/btrfs/Kconfig | |
parent | ace68bac61b338e52924d87ebdd0fa8c7439f896 (diff) |
btrfs: move leak debug code to functions
Clean up the leak debugging in extent_io.c by moving
the debug code into functions. This also removes the
list_heads used for debugging from the extent_buffer
and extent_state structures when debug is not enabled.
Since we need a global debug config to do that last
part, implement CONFIG_BTRFS_DEBUG to accommodate.
Thanks to Dave Sterba for the Kconfig bit.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/Kconfig')
-rw-r--r-- | fs/btrfs/Kconfig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/btrfs/Kconfig b/fs/btrfs/Kconfig index 0f5374c9e368..2b3b83296977 100644 --- a/fs/btrfs/Kconfig +++ b/fs/btrfs/Kconfig | |||
@@ -63,3 +63,12 @@ config BTRFS_FS_RUN_SANITY_TESTS | |||
63 | 63 | ||
64 | If unsure, say N. | 64 | If unsure, say N. |
65 | 65 | ||
66 | config BTRFS_DEBUG | ||
67 | bool "Btrfs debugging support" | ||
68 | depends on BTRFS_FS | ||
69 | help | ||
70 | Enable run-time debugging support for the btrfs filesystem. This may | ||
71 | enable additional and expensive checks with negative impact on | ||
72 | performance, or export extra information via sysfs. | ||
73 | |||
74 | If unsure, say N. | ||