[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1385756510-2556-1-git-send-email-richard@nod.at>
Date: Fri, 29 Nov 2013 21:21:50 +0100
From: Richard Weinberger <richard@....at>
To: viro@...iv.linux.org.uk
Cc: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
akpm@...ux-foundation.org, Richard Weinberger <richard@....at>
Subject: [PATCH] Call arch_pick_mmap_layout() only once
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@....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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists