2017-11-16 10:18:08 +01:00
|
|
|
aufs4.13 lockdep patch
|
2016-10-23 14:10:48 +02:00
|
|
|
|
|
|
|
diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h
|
2017-11-16 10:18:08 +01:00
|
|
|
index f753750..3e7ef18 100644
|
2016-10-23 14:10:48 +02:00
|
|
|
--- a/include/linux/lockdep.h
|
|
|
|
+++ b/include/linux/lockdep.h
|
2017-06-03 03:34:14 +02:00
|
|
|
@@ -16,7 +16,7 @@ struct lockdep_map;
|
|
|
|
extern int prove_locking;
|
|
|
|
extern int lock_stat;
|
2016-10-23 14:10:48 +02:00
|
|
|
|
|
|
|
-#define MAX_LOCKDEP_SUBCLASSES 8UL
|
|
|
|
+#define MAX_LOCKDEP_SUBCLASSES (8UL + 4)
|
|
|
|
|
2017-06-03 03:34:14 +02:00
|
|
|
#ifdef CONFIG_LOCKDEP
|
|
|
|
|
|
|
|
@@ -205,7 +205,7 @@ struct lock_chain {
|
2016-10-23 14:10:48 +02:00
|
|
|
u64 chain_key;
|
|
|
|
};
|
|
|
|
|
|
|
|
-#define MAX_LOCKDEP_KEYS_BITS 13
|
|
|
|
+#define MAX_LOCKDEP_KEYS_BITS (13 + 3)
|
|
|
|
/*
|
|
|
|
* Subtract one because we offset hlock->class_idx by 1 in order
|
|
|
|
* to make 0 mean no class. This avoids overflowing the class_idx
|
|
|
|
diff --git a/kernel/locking/lockdep_internals.h b/kernel/locking/lockdep_internals.h
|
2017-11-16 10:18:08 +01:00
|
|
|
index c08fbd2..b868e7b 100644
|
2016-10-23 14:10:48 +02:00
|
|
|
--- a/kernel/locking/lockdep_internals.h
|
|
|
|
+++ b/kernel/locking/lockdep_internals.h
|
2017-06-03 03:34:14 +02:00
|
|
|
@@ -66,15 +66,15 @@ enum {
|
|
|
|
#define MAX_LOCKDEP_CHAINS_BITS 15
|
|
|
|
#define MAX_STACK_TRACE_ENTRIES 262144UL
|
|
|
|
#else
|
2016-10-23 14:10:48 +02:00
|
|
|
-#define MAX_LOCKDEP_ENTRIES 32768UL
|
|
|
|
+#define MAX_LOCKDEP_ENTRIES (32768UL << 5)
|
|
|
|
|
|
|
|
-#define MAX_LOCKDEP_CHAINS_BITS 16
|
|
|
|
+#define MAX_LOCKDEP_CHAINS_BITS (16 + 5)
|
|
|
|
|
2017-06-03 03:34:14 +02:00
|
|
|
/*
|
2016-10-23 14:10:48 +02:00
|
|
|
* Stack-trace: tightly packed array of stack backtrace
|
|
|
|
* addresses. Protected by the hash_lock.
|
|
|
|
*/
|
|
|
|
-#define MAX_STACK_TRACE_ENTRIES 524288UL
|
|
|
|
+#define MAX_STACK_TRACE_ENTRIES (524288UL << 5)
|
2017-06-03 03:34:14 +02:00
|
|
|
#endif
|
2016-10-23 14:10:48 +02:00
|
|
|
|
2017-06-03 03:34:14 +02:00
|
|
|
#define MAX_LOCKDEP_CHAINS (1UL << MAX_LOCKDEP_CHAINS_BITS)
|