mm: add kernel_[sg]et_mempolicy() helpers; remove in-kernel calls to syscalls
authorDominik Brodowski <linux@dominikbrodowski.net>
Sat, 17 Mar 2018 15:20:01 +0000 (16:20 +0100)
committerDominik Brodowski <linux@dominikbrodowski.net>
Mon, 2 Apr 2018 18:15:34 +0000 (20:15 +0200)
commitaf03c4acb728dd9ed850d329a1cff71d52e7f3a8
tree637aca733c8dad55692868fe8cff5af53abccdc1
parente7dc9ad6e98eb8cc49b454d54e361f91aebc395f
mm: add kernel_[sg]et_mempolicy() helpers; remove in-kernel calls to syscalls

Using the mm-internal kernel_[sg]et_mempolicy() helper allows us to get
rid of the mm-internal calls to the sys_[sg]et_mempolicy() syscalls.

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>
mm/mempolicy.c