mm: add kernel_move_pages() helper, move compat syscall to mm/migrate.c
authorDominik Brodowski <linux@dominikbrodowski.net>
Sat, 17 Mar 2018 15:08:03 +0000 (16:08 +0100)
committerDominik Brodowski <linux@dominikbrodowski.net>
Mon, 2 Apr 2018 18:15:32 +0000 (20:15 +0200)
commit7addf44388255f6fa99c83e3e2ad79cef0813698
tree3373275fd1a2b8455ad91b7220417ebd901baa2f
parentb6e9b0babb7a02ae4f00f053974609000f00950e
mm: add kernel_move_pages() helper, move compat syscall to mm/migrate.c

Move compat_sys_move_pages() to mm/migrate.c and make it call a newly
introduced helper -- kernel_move_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/migrate.c