lockdep-debug.patch 1.14 KB
Newer Older
J. R. Okajima's avatar
J. R. Okajima committed
1
2
3
4
SPDX-License-Identifier: GPL-2.0
aufs5.x-rcN lockdep patch

diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h
J. R. Okajima's avatar
J. R. Okajima committed
5
index 93bb861981675..acde7be2848cf 100644
J. R. Okajima's avatar
J. R. Okajima committed
6
7
8
--- a/include/linux/lockdep.h
+++ b/include/linux/lockdep.h
diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
J. R. Okajima's avatar
J. R. Okajima committed
9
index be002c3a30833..38e997d6c0474 100644
J. R. Okajima's avatar
J. R. Okajima committed
10
11
12
--- a/kernel/locking/lockdep.c
+++ b/kernel/locking/lockdep.c
diff --git a/kernel/locking/lockdep_internals.h b/kernel/locking/lockdep_internals.h
J. R. Okajima's avatar
J. R. Okajima committed
13
index de49f9e1c11ba..df5b79a3122b9 100644
J. R. Okajima's avatar
J. R. Okajima committed
14
15
--- a/kernel/locking/lockdep_internals.h
+++ b/kernel/locking/lockdep_internals.h
J. R. Okajima's avatar
J. R. Okajima committed
16
@@ -99,15 +99,15 @@ static const unsigned long LOCKF_USED_IN_IRQ_READ =
J. R. Okajima's avatar
J. R. Okajima committed
17
 #define MAX_STACK_TRACE_ENTRIES	262144UL
J. R. Okajima's avatar
J. R. Okajima committed
18
 #define STACK_TRACE_HASH_SIZE	8192
J. R. Okajima's avatar
J. R. Okajima committed
19
20
21
22
23
24
25
26
27
28
29
30
31
 #else
-#define MAX_LOCKDEP_ENTRIES	32768UL
+#define MAX_LOCKDEP_ENTRIES	(32768UL << 5)
 
-#define MAX_LOCKDEP_CHAINS_BITS	16
+#define MAX_LOCKDEP_CHAINS_BITS	(16 + 5)
 
 /*
  * 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)
J. R. Okajima's avatar
J. R. Okajima committed
32
 #define STACK_TRACE_HASH_SIZE	16384
J. R. Okajima's avatar
J. R. Okajima committed
33
34
 #endif