On Mon, Apr 22, 2013 at 11:12:31AM -0500, Eric Sandeen wrote:
> 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 <sand...@redhat.com>
Reviewed-by: David Sterba <dste...@suse.cz>

> Now we can move other #ifdef DEBUG under this same
> config, but not all of them; some look like they
> would be way too chatty.  I'll need to review those
> before ending another patch to add any of them
> under CONFIG_BTRFS_DEBUG.

Agreed. The number of extra checks should be reasonable so the fs is still
usable.

david
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to