]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - init/do_mounts.c
fs: add ksys_chdir() helper; remove in-kernel calls to sys_chdir()
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:15:51 +0000 (20:15 +0200)
commit447016e9681965fda8dcd9e4fd3c55308a6fd166
tree02db8c01fa405f0f16ba09bbee415cdf15e30b14
parente7a3e8b2edf544ec28f689385c3adc2903f46ec0
fs: add ksys_chdir() helper; remove in-kernel calls to sys_chdir()

Using this helper allows us to avoid the in-kernel calls to the sys_chdir()
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_chdir().

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>
drivers/base/devtmpfs.c
fs/open.c
include/linux/syscalls.h
init/do_mounts.c
init/do_mounts_initrd.c