Btrfs: Use mutex_lock_nested for tree locking
[linux-2.6-block.git] / fs / btrfs / ctree.h
index f8fccdac305546e3e27a3ca3387f01486b3fbe28..eeb5afa6e9b1c45230227bcb30398d55e7fae93c 100644 (file)
@@ -42,7 +42,11 @@ struct btrfs_ordered_sum;
 
 #define BTRFS_MAGIC "_B5RfS_M"
 
-#define BTRFS_MAX_LEVEL 8
+#ifdef CONFIG_LOCKDEP
+# define BTRFS_MAX_LEVEL 7
+#else
+# define BTRFS_MAX_LEVEL 8
+#endif
 
 /* holds pointers to all of the tree roots */
 #define BTRFS_ROOT_TREE_OBJECTID 1ULL