Re: [PATCH V3] btrfs: move leak debug code to functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <sandeen@xxxxxxxxxx>
Reviewed-by: David Sterba <dsterba@xxxxxxx>

> 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux