lkml.org 
[lkml]   [2013]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Call arch_pick_mmap_layout() only once
Date
Currently both setup_new_exec() and flush_old_exec() issue
a call to arch_pick_mmap_layout().
As setup_new_exec() and flush_old_exec() are always called
pairwise arch_pick_mmap_layout() is called twice.

This patch removes one call from setup_new_exec() to have
it only called once.

Signed-off-by: Richard Weinberger <richard@nod.at>
---
fs/exec.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/fs/exec.c b/fs/exec.c
index 7ea097f..13226bb 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -1109,8 +1109,6 @@ EXPORT_SYMBOL(would_dump);

void setup_new_exec(struct linux_binprm * bprm)
{
- arch_pick_mmap_layout(current->mm);
-
/* This is the point of no return */
current->sas_ss_sp = current->sas_ss_size = 0;

--
1.8.1.4


\
 
 \ /
  Last update: 2013-11-29 22:01    [W:0.165 / U:0.372 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site