]> git.baikalelectronics.ru Git - kernel.git/commit
fs/exec.c: call arch_pick_mmap_layout() only once
authorRichard Weinberger <richard@nod.at>
Thu, 23 Jan 2014 23:55:58 +0000 (15:55 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Jan 2014 00:37:02 +0000 (16:37 -0800)
commitbdf62b5fe6eddc6ecc504157a46e9b72a78dc879
tree1387602443da709099ff8886591911dd8097a66f
parente60da0c2a6983d4ac2268b5f95af13087a89003e
fs/exec.c: 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@nod.at>
Tested-by: Pat Erley <pat-lkml@erley.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/exec.c