History

init: add an init_umount helper

Like ksys_umount, but takes a kernel pointer for the destination path. Switch over the umount in the init code, which just happen to work due to the implicit set_fs(KERNEL_DS) during early init right now.

Christoph Hellwig committed 6 years ago

Commit 09267de1 parent c60166f6 files · +19 −4Browse files

Showing the changes to include/linux (2 of 6 files). Show all

Unified · Split

2 files
  1. include/linux/init_syscalls.h +1 −0
  2. include/linux/syscalls.h +0 −1
include/linux/init_syscalls.h+1−0
@@ -2,3 +2,4 @@ · 1 unmodified line
22
33 int __init init_mount(const char *dev_name, const char *dir_name,
44 const char *type_page, unsigned long flags, void *data_page);
5+int __init init_umount(const char *name, int flags);
include/linux/syscalls.h+0−1
@@ -1236,7 +1236,6 @@ asmlinkage long sys_ni_syscall(void); · 1235 unmodified lines
12361236 * the ksys_xyzyyz() functions prototyped below.
12371237 */
12381238
1239−int ksys_umount(char __user *name, int flags);
12401239 int ksys_chroot(const char __user *filename);
12411240 ssize_t ksys_write(unsigned int fd, const char __user *buf, size_t count);
12421241 int ksys_chdir(const char __user *filename);