File: fixed_map-linux-2.4.4.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-- 616 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff -ur linux-orig/include/linux/sched.h linux/include/linux/sched.h
--- linux-orig/include/linux/sched.h	Tue Jan 30 16:53:30 2001
+++ linux/include/linux/sched.h	Tue Jan 30 17:46:27 2001
@@ -194,8 +194,9 @@
 	fd_array:	{ 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