File: fixed_map-linux-2.2.18.patch

package info (click to toggle)
njamd 0.9.3pre2-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,704 kB
  • ctags: 1,056
  • sloc: ansic: 9,367; sh: 7,921; makefile: 121; perl: 52
file content (15 lines) | stat: -rw-r--r-- 634 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff -ur linux-2.2.18-orig/include/linux/sched.h linux-2.2.18/include/linux/sched.h
--- linux-2.2.18-orig/include/linux/sched.h	Sun Dec 10 18:49:44 2000
+++ linux-2.2.18/include/linux/sched.h	Tue Jan 30 16:33:17 2001
@@ -166,8 +166,9 @@
 	NULL, NULL \
 }
 
-/* Maximum number of active map areas.. This is a random (large) number */
-#define MAX_MAP_COUNT	(65536)
+/* Maximum number of active map areas. This is the number of pages that fit in
+ * the address space */
+#define MAX_MAP_COUNT   (ULONG_MAX >> PAGE_SHIFT)
 
 /* Number of map areas at which the AVL tree is activated. This is arbitrary. */
 #define AVL_MIN_MAP_COUNT	32