Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230968
b: refs/heads/master
c: 7e0d485
h: refs/heads/master
v: v3
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Jan 12, 2011
1 parent c8ac429 commit 2c4e219
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e7828bbd5e8b7c8d6480d1eb744af821989ca432
refs/heads/master: 7e0d48574ec371e26fa31e23d1d314f04e31eb3e
13 changes: 4 additions & 9 deletions trunk/arch/s390/mm/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,11 @@ static inline unsigned long mmap_base(void)

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

#ifndef CONFIG_64BIT
Expand Down

0 comments on commit 2c4e219

Please sign in to comment.