]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs/exec.c: call arch_pick_mmap_layout() only once
authorRichard Weinberger <richard@nod.at>
Fri, 3 Jan 2014 03:10:32 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:32 +0000 (14:10 +1100)
commit16d2326efdf8b6dbd839b867f76de2b21cb2d3f5
tree794edda6d9ae1c67e558668b230804044f0a9700
parenta5fe85dce8fbe92ec98094048262f536a102b994
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>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/exec.c