mm: add kernel_migrate_pages() helper, move compat syscall to mm/mempolicy.c
authorDominik Brodowski <linux@dominikbrodowski.net>
Sat, 17 Mar 2018 15:00:25 +0000 (16:00 +0100)
committerDominik Brodowski <linux@dominikbrodowski.net>
Mon, 2 Apr 2018 18:15:31 +0000 (20:15 +0200)
commitb6e9b0babb7a02ae4f00f053974609000f00950e
tree0d549e6585c79ace69a06aa1004ec9ee42ec4e25
parent7d4dd4f159b94003655b1688d9a4c0e2b6268ff8
mm: add kernel_migrate_pages() helper, move compat syscall to mm/mempolicy.c

Move compat_sys_migrate_pages() to mm/mempolicy.c and make it call a newly
introduced helper -- kernel_migrate_pages() -- instead of the syscall.

This patch is part of a series which removes in-kernel calls to syscalls.
On this basis, the syscall entry path can be streamlined. For details, see
http://lkml.kernel.org/r/20180325162527.GA17492@light.dominikbrodowski.net

Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: linux-mm@kvack.org
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
kernel/compat.c
mm/mempolicy.c