diff options
| author | Dominik Brodowski <[email protected]> | 2018-03-11 10:34:42 +0000 |
|---|---|---|
| committer | Dominik Brodowski <[email protected]> | 2018-04-02 18:16:06 +0000 |
| commit | 9b32105ec6b13d32d5db6a6e7992c97ce54b5ea7 (patch) | |
| tree | c3a07615fb95216020d87c65638c55deb47b45ac /drivers/base/devtmpfs.c | |
| parent | fs: add ksys_sync() helper; remove in-kernel calls to sys_sync() (diff) | |
| download | kernel-9b32105ec6b13d32d5db6a6e7992c97ce54b5ea7.tar.gz kernel-9b32105ec6b13d32d5db6a6e7992c97ce54b5ea7.zip | |
kernel: add ksys_unshare() helper; remove in-kernel calls to sys_unshare()
Using this helper allows us to avoid the in-kernel calls to the
sys_unshare() 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_unshare().
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/[email protected]
Cc: Al Viro <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Dominik Brodowski <[email protected]>
Diffstat (limited to 'drivers/base/devtmpfs.c')
| -rw-r--r-- | drivers/base/devtmpfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/devtmpfs.c b/drivers/base/devtmpfs.c index 3f7ee954fd2c..f7768077e817 100644 --- a/drivers/base/devtmpfs.c +++ b/drivers/base/devtmpfs.c @@ -380,7 +380,7 @@ static int devtmpfsd(void *p) { char options[] = "mode=0755"; int *err = p; - *err = sys_unshare(CLONE_NEWNS); + *err = ksys_unshare(CLONE_NEWNS); if (*err) goto out; *err = ksys_mount("devtmpfs", "/", "devtmpfs", MS_SILENT, options); |
