btrfs: move leak debug code to functions
authorEric Sandeen <[email protected]>
Mon, 22 Apr 2013 16:12:31 +0000 (16:12 +0000)
committerJosef Bacik <[email protected]>
Mon, 6 May 2013 19:55:16 +0000 (15:55 -0400)
commit6d49ba1b47b9c6822d08f90af6f1a2d8ca1cf533
tree316890f9d5ce407a6767b279620ee3131b6c8e75
parentace68bac61b338e52924d87ebdd0fa8c7439f896
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 <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
fs/btrfs/Kconfig
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h