kernel/fork: factor out replacing the current MM exe_file
authorDavid Hildenbrand <david@redhat.com>
Fri, 23 Apr 2021 08:20:25 +0000 (10:20 +0200)
committerDavid Hildenbrand <david@redhat.com>
Fri, 3 Sep 2021 16:42:01 +0000 (18:42 +0200)
commit35d7bdc86031a2c1ae05ac27dfa93b2acdcbaecc
tree0637f57df13ec0ff4bfe4c2aabf7a91640a42668
parent42be8b42535183f84df99acbaf799e38724348f3
kernel/fork: factor out replacing the current MM exe_file

Let's factor the main logic out into replace_mm_exe_file(), such that
all mm->exe_file logic is contained in kernel/fork.c.

While at it, perform some simple cleanups that are possible now that
we're simplifying the individual functions.

Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
include/linux/mm.h
kernel/fork.c
kernel/sys.c