]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Btrfs: Turn off extent state leak debugging
authorChris Mason <chris.mason@oracle.com>
Mon, 10 Nov 2008 17:34:40 +0000 (12:34 -0500)
committerChris Mason <chris.mason@oracle.com>
Mon, 10 Nov 2008 17:34:40 +0000 (12:34 -0500)
The extent_io.c code has a #define to find and cleanup extent state leaks
on module unmount.  This adds a very highly contended spinlock to a
hot path for most FS operations.

Turn it off by default.  A later changeset will add a .config option
for it.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent_io.c

index af2d9a9300a729b837cc9055fe1098d9ecfa0c96..5cc0082379ce683604f9c46856fad773d6006379 100644 (file)
@@ -30,7 +30,7 @@ static struct kmem_cache *extent_buffer_cache;
 static LIST_HEAD(buffers);
 static LIST_HEAD(states);
 
-#define LEAK_DEBUG 1
+#define LEAK_DEBUG 0
 #ifdef LEAK_DEBUG
 static spinlock_t leak_lock = SPIN_LOCK_UNLOCKED;
 #endif