Messages in this thread Patch in this message | | | From | Richard Weinberger <> | Subject | [PATCH] Call arch_pick_mmap_layout() only once | Date | Fri, 29 Nov 2013 21:21:50 +0100 |
| |
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
| |