fs: add ksys_open() wrapper; remove in-kernel calls to sys_open()
Using this wrapper allows us to avoid the in-kernel calls to the sys_open() 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_open(). 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: Andrew Morton <akpm@linux-foundation.org> Signed-off-by:Dominik Brodowski <linux@dominikbrodowski.net>
Showing
- fs/open.c 1 addition, 1 deletionfs/open.c
- include/linux/syscalls.h 11 additions, 0 deletionsinclude/linux/syscalls.h
- init/do_mounts.c 2 additions, 2 deletionsinit/do_mounts.c
- init/do_mounts_initrd.c 2 additions, 2 deletionsinit/do_mounts_initrd.c
- init/do_mounts_md.c 3 additions, 3 deletionsinit/do_mounts_md.c
- init/do_mounts_rd.c 3 additions, 3 deletionsinit/do_mounts_rd.c
- init/initramfs.c 3 additions, 3 deletionsinit/initramfs.c
- init/main.c 1 addition, 1 deletioninit/main.c
Please register or sign in to comment