summaryrefslogtreecommitdiff
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-11-10 20:34:40 +0300
committerChris Mason <chris.mason@oracle.com>2008-11-10 20:34:40 +0300
commitb47eda8690a10f4fc01eb7b795078fa3fa57149f (patch)
treeddfef53690e1f92ef4c38be0308c19e85f94fbe4 /fs/btrfs/extent_io.c
parent445a69449994a37615cd47e47bcab2e42a070adf (diff)
downloadlinux-b47eda8690a10f4fc01eb7b795078fa3fa57149f.tar.xz
Btrfs: Turn off extent state leak debugging
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>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index af2d9a9300a7..5cc0082379ce 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -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