aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/mm
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2011-01-12 03:55:25 -0500
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>2011-01-12 03:55:24 -0500
commit7e0d48574ec371e26fa31e23d1d314f04e31eb3e (patch)
tree1fe0dea71be6c4d2375d39c083f7156e2e6d7101 /arch/s390/mm
parente7828bbd5e8b7c8d6480d1eb744af821989ca432 (diff)
[S390] Enable flexible mmap layout for 64 bit processes
Historically 64 bit processes use the legacy address layout. However there is no reason why 64 bit processes shouldn't benefit from the flexible mmap layout advantages. Therefore just enable it. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/mm')
-rw-r--r--arch/s390/mm/mmap.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/arch/s390/mm/mmap.c b/arch/s390/mm/mmap.c
index 89eff9e7b0b5..ab7e08a01b6c 100644
--- a/arch/s390/mm/mmap.c
+++ b/arch/s390/mm/mmap.c
@@ -61,16 +61,11 @@ static inline unsigned long mmap_base(void)
61 61
62static inline int mmap_is_legacy(void) 62static inline int mmap_is_legacy(void)
63{ 63{
64#ifdef CONFIG_64BIT 64 if (current->personality & ADDR_COMPAT_LAYOUT)
65 /*
66 * Force standard allocation for 64 bit programs.
67 */
68 if (!is_compat_task())
69 return 1; 65 return 1;
70#endif 66 if (rlimit(RLIMIT_STACK) == RLIM_INFINITY)
71 return sysctl_legacy_va_layout || 67 return 1;
72 (current->personality & ADDR_COMPAT_LAYOUT) || 68 return sysctl_legacy_va_layout;
73 rlimit(RLIMIT_STACK) == RLIM_INFINITY;
74} 69}
75 70
76#ifndef CONFIG_64BIT 71#ifndef CONFIG_64BIT