diff options
| author | Arjan van de Ven <arjanv@redhat.com> | 2004-08-23 21:12:13 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-08-23 21:12:13 -0700 |
| commit | 64e3b6b67906efd7dcd2e50e8dc561cef86e5ce0 (patch) | |
| tree | 716dc2d96178b5c78f90d73f07974d0a1dbb88ff /include | |
| parent | 8fead718405ab6e11125661b3a1e29a9d3fe233c (diff) | |
[PATCH] sysctl tunable for flexmmap
Create /proc/sys/vm/legacy_va_layout. If this is non-zero, the kernel
will use the old mmap layout for all tasks. it presently defaults to zero
(the new layout).
From: William Lee Irwin III <wli@holomorphy.com>
hugetlb CONFIG_SYSCTL=n fix
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-i386/page.h | 2 | ||||
| -rw-r--r-- | include/linux/mm.h | 6 | ||||
| -rw-r--r-- | include/linux/sysctl.h | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/include/asm-i386/page.h b/include/asm-i386/page.h index eb0e11f10683..fc3fb25278de 100644 --- a/include/asm-i386/page.h +++ b/include/asm-i386/page.h @@ -116,6 +116,8 @@ static __inline__ int get_order(unsigned long size) return order; } +extern int sysctl_legacy_va_layout; + #endif /* __ASSEMBLY__ */ #ifdef __ASSEMBLY__ diff --git a/include/linux/mm.h b/include/linux/mm.h index b7859da6d333..5849420e912e 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -26,6 +26,12 @@ extern void * high_memory; extern unsigned long vmalloc_earlyreserve; extern int page_cluster; +#ifdef CONFIG_SYSCTL +extern int sysctl_legacy_va_layout; +#else +#define sysctl_legacy_va_layout 0 +#endif + #include <asm/page.h> #include <asm/pgtable.h> #include <asm/processor.h> diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index afd89be7c193..bec509e874de 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h @@ -166,6 +166,7 @@ enum VM_BLOCK_DUMP=24, /* block dump mode */ VM_HUGETLB_GROUP=25, /* permitted hugetlb group */ VM_VFS_CACHE_PRESSURE=26, /* dcache/icache reclaim pressure */ + VM_LEGACY_VA_LAYOUT=27, /* legacy/compatibility virtual address space layout */ }; |
