mm: add ksys_mmap_pgoff() helper; remove in-kernel calls to sys_mmap_pgoff()
authorDominik Brodowski <linux@dominikbrodowski.net>
Sun, 11 Mar 2018 10:34:46 +0000 (11:34 +0100)
committerDominik Brodowski <linux@dominikbrodowski.net>
Mon, 2 Apr 2018 18:16:11 +0000 (20:16 +0200)
commita90f590a1bee36fc2129cfb38ceec24a555bb12d
tree42e18715d5070d0f428464ba40b4ed136363f6e2
parent9d5b7c956b09daab955fb2a42447d5d89ff15093
mm: add ksys_mmap_pgoff() helper; remove in-kernel calls to sys_mmap_pgoff()

Using this helper allows us to avoid the in-kernel calls to the
sys_mmap_pgoff() syscall. The ksys_ prefix denotes that this function is
meant as a drop-in replacement for the syscall. In particular, it uses the
same calling convention as sys_mmap_pgoff().

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: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
21 files changed:
arch/alpha/kernel/osf_sys.c
arch/arm64/kernel/sys.c
arch/ia64/kernel/sys_ia64.c
arch/m68k/kernel/sys_m68k.c
arch/microblaze/kernel/sys_microblaze.c
arch/mips/kernel/linux32.c
arch/mips/kernel/syscall.c
arch/parisc/kernel/sys_parisc.c
arch/powerpc/kernel/syscalls.c
arch/riscv/kernel/sys_riscv.c
arch/s390/kernel/compat_linux.c
arch/s390/kernel/sys_s390.c
arch/sh/kernel/sys_sh.c
arch/sparc/kernel/sys_sparc_32.c
arch/sparc/kernel/sys_sparc_64.c
arch/um/kernel/syscall.c
arch/x86/ia32/sys_ia32.c
arch/x86/kernel/sys_x86_64.c
include/linux/syscalls.h
mm/mmap.c
mm/nommu.c