Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e0d4857 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky
Browse files

[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: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent e7828bbd
Loading
Loading
Loading
Loading
+4 −9
Original line number Original line Diff line number Diff line
@@ -61,16 +61,11 @@ static inline unsigned long mmap_base(void)


static inline int mmap_is_legacy(void)
static inline int mmap_is_legacy(void)
{
{
#ifdef CONFIG_64BIT
	if (current->personality & ADDR_COMPAT_LAYOUT)
	/*
	 * Force standard allocation for 64 bit programs.
	 */
	if (!is_compat_task())
		return 1;
		return 1;
#endif
	if (rlimit(RLIMIT_STACK) == RLIM_INFINITY)
	return sysctl_legacy_va_layout ||
		return 1;
	    (current->personality & ADDR_COMPAT_LAYOUT) ||
	return sysctl_legacy_va_layout;
	    rlimit(RLIMIT_STACK) == RLIM_INFINITY;
}
}


#ifndef CONFIG_64BIT
#ifndef CONFIG_64BIT