Dominik Brodowski
e7a3e8b2ed
fs: add ksys_write() helper; remove in-kernel calls to sys_write()
...
Using this helper allows us to avoid the in-kernel calls to the sys_write()
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_write().
In the near future, the do_mounts / initramfs callers of ksys_write()
should be converted to use filp_open() and vfs_write() instead.
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: Alexander Viro <viro@zeniv.linux.org.uk >
Cc: linux-s390@vger.kernel.org
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:51 +02:00
Dominik Brodowski
a16fe33ab5
fs: add ksys_chroot() helper; remove-in kernel calls to sys_chroot()
...
Using this helper allows us to avoid the in-kernel calls to the
sys_chroot() 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_chroot().
In the near future, the fs-external callers of ksys_chroot() should be
converted to use kern_path()/set_fs_root() directly. Then ksys_chroot()
can be moved within sys_chroot() again.
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: Alexander Viro <viro@zeniv.linux.org.uk >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:50 +02:00
Dominik Brodowski
c7248321a3
fs: add ksys_dup{,3}() helper; remove in-kernel calls to sys_dup{,3}()
...
Using ksys_dup() and ksys_dup3() as helper functions allows us to
avoid the in-kernel calls to the sys_dup() and sys_dup3() syscalls.
The ksys_ prefix denotes that these functions are meant as a drop-in
replacement for the syscalls. In particular, they use the same
calling convention as sys_dup{,3}().
In the near future, the fs-external callers of ksys_dup{,3}() should be
converted to call do_dup2() directly. Then, ksys_dup{,3}() can be moved
within sys_dup{,3}() again.
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: Alexander Viro <viro@zeniv.linux.org.uk >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:49 +02:00
Dominik Brodowski
3a18ef5c1b
fs: add ksys_umount() helper; remove in-kernel call to sys_umount()
...
Using this helper allows us to avoid the in-kernel call to the sys_umount()
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 ksys_umount().
In the near future, the only fs-external caller of ksys_umount() should be
converted to call do_umount() directly. Then, ksys_umount() can be moved
within sys_umount() again.
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: Alexander Viro <viro@zeniv.linux.org.uk >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:48 +02:00
Dominik Brodowski
312db1aa1d
fs: add ksys_mount() helper; remove in-kernel calls to sys_mount()
...
Using this helper allows us to avoid the in-kernel calls to the sys_mount()
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_mount().
In the near future, all callers of ksys_mount() should be converted to call
do_mount() directly.
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: Alexander Viro <viro@zeniv.linux.org.uk >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:48 +02:00
Dominik Brodowski
ab0d1e85bf
fs/quota: use COMPAT_SYSCALL_DEFINE for sys32_quotactl()
...
While sys32_quotactl() is only needed on x86, it can use the recommended
COMPAT_SYSCALL_DEFINEx() machinery for its setup.
Acked-by: Jan Kara <jack@suse.cz >
Cc: Christoph Hellwig <hch@infradead.org >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:47 +02:00
Dominik Brodowski
cb0b476ab1
fs/quota: add kernel_quotactl() helper; remove in-kernel call to syscall
...
Using the fs-internal kernel_quotactl() helper allows us to get rid of
the fs-internal call to the sys_quotactl() syscall.
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
Acked-by: Jan Kara <jack@suse.cz >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:46 +02:00
Dominik Brodowski
183caa3c86
fanotify: add do_fanotify_mark() helper; remove in-kernel call to syscall
...
Using the fs-internal do_fanotify_mark() helper allows us to get rid of
the fs-internal call to the sys_fanotify_mark() syscall.
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
Acked-by: Jan Kara <jack@suse.cz >
Cc: Amir Goldstein <amir73il@gmail.com >
Cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:45 +02:00
Dominik Brodowski
d0d89d1ed3
inotify: add do_inotify_init() helper; remove in-kernel call to syscall
...
Using the inotify-internal do_inotify_init() helper allows us to get rid
of the in-kernel call to sys_inotify_init1() syscall.
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
Acked-by: Jan Kara <jack@suse.cz >
Cc: Amir Goldstein <amir73il@gmail.com >
Cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:45 +02:00
Dominik Brodowski
ab641afa73
fs: add do_compat_futimesat() helper; remove in-kernel call to compat syscall
...
Using the fs-internal do_compat_futimesat() helper allows us to get rid of
the fs-internal call to the compat_sys_futimesat() syscall.
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 >
2018-04-02 20:15:44 +02:00
Dominik Brodowski
570484bfe8
fs: add do_compat_signalfd4() helper; remove in-kernel call to compat syscall
...
Using the fs-internal do_compat_signalfd4() helper allows us to get rid of
the fs-internal call to the compat_sys_signalfd4() syscall.
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 >
2018-04-02 20:15:43 +02:00
Dominik Brodowski
05585e4495
fs: add do_compat_select() helper; remove in-kernel call to compat syscall
...
Using the fs-internal do_compat_select() helper allows us to get rid of
the fs-internal call to the compat_sys_select() syscall.
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 >
2018-04-02 20:15:42 +02:00
Dominik Brodowski
e02af2ff65
fs: add do_compat_fcntl64() helper; remove in-kernel call to compat syscall
...
Using the fs-internal do_compat_fcntl64() helper allows us to get rid of
the fs-internal call to the compat_sys_fcntl64() syscall.
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 >
2018-04-02 20:15:42 +02:00
Dominik Brodowski
4bdb9acabf
fs: add kern_select() helper; remove in-kernel call to sys_select()
...
Using this helper allows us to avoid the in-kernel call to the sys_umount()
syscall.
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 >
2018-04-02 20:15:41 +02:00
Dominik Brodowski
30cfe4ef8b
fs: add do_vmsplice() helper; remove in-kernel call to syscall
...
Using the fs-internal do_vmsplice() helper allows us to get rid of the
fs-internal call to the sys_vmsplice() syscall.
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 >
2018-04-02 20:15:40 +02:00
Dominik Brodowski
98e5f7bd2c
fs: add do_lookup_dcookie() helper; remove in-kernel call to syscall
...
Using the fs-internal do_lookup_dcookie() helper allows us to get rid of
fs-internal calls to the sys_lookup_dcookie() syscall.
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 >
2018-04-02 20:15:39 +02:00
Dominik Brodowski
2fc96f8331
fs: add do_eventfd() helper; remove internal call to sys_eventfd()
...
Using this helper removes an in-kernel call to the sys_eventfd() syscall.
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: Alexander Viro <viro@zeniv.linux.org.uk >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:39 +02:00
Dominik Brodowski
52fb6db0fd
fs: add do_signalfd4() helper; remove internal calls to sys_signalfd4()
...
Using this helper removes in-kernel calls to the sys_signalfd4() syscall
function.
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: Alexander Viro <viro@zeniv.linux.org.uk >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:38 +02:00
Dominik Brodowski
791eb22eef
fs: add do_epoll_*() helpers; remove internal calls to sys_epoll_*()
...
Using the helper functions do_epoll_create() and do_epoll_wait() allows us
to remove in-kernel calls to the related syscall functions.
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: Alexander Viro <viro@zeniv.linux.org.uk >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:37 +02:00
Dominik Brodowski
f13903587c
fs: add do_futimesat() helper; remove internal call to sys_futimesat()
...
Using this helper removes the in-kernel call to the sys_futimesat()
syscall.
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: Alexander Viro <viro@zeniv.linux.org.uk >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:37 +02:00
Dominik Brodowski
ee81feb64e
fs: add do_renameat2() helper; remove internal call to sys_renameat2()
...
Using this helper removes in-kernel calls to the sys_renameat2() syscall.
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: Alexander Viro <viro@zeniv.linux.org.uk >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:36 +02:00
Dominik Brodowski
0a216dd1cf
fs: add do_pipe2() helper; remove internal call to sys_pipe2()
...
Using this helper removes an in-kernel call to the sys_pipe2() syscall.
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: Alexander Viro <viro@zeniv.linux.org.uk >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:35 +02:00
Dominik Brodowski
2dae024806
fs: add do_readlinkat() helper; remove internal call to sys_readlinkat()
...
Using the do_readlinkat() helper removes an in-kernel call to the
sys_readlinkat() syscall.
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: Alexander Viro <viro@zeniv.linux.org.uk >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
2018-04-02 20:15:34 +02:00
Dominik Brodowski
af03c4acb7
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 >
2018-04-02 20:15:34 +02:00
Dominik Brodowski
e7dc9ad6e9
mm: add kernel_mbind() helper; remove in-kernel call to syscall
...
Using the mm-internal kernel_mbind() helper allows us to get rid of the
mm-internal call to the sys_mbind() syscall.
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 >
2018-04-02 20:15:33 +02:00