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
2 2
3int __init init_mount(const char *dev_name, const char *dir_name,3int __init init_mount(const char *dev_name, const char *dir_name,
4 const char *type_page, unsigned long flags, void *data_page);4 const char *type_page, unsigned long flags, void *data_page);
5int __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
1236 * the ksys_xyzyyz() functions prototyped below.1236 * the ksys_xyzyyz() functions prototyped below.
1237 */1237 */
1238 1238
1239int ksys_umount(char __user *name, int flags);
1240int ksys_chroot(const char __user *filename);1239int ksys_chroot(const char __user *filename);
1241ssize_t ksys_write(unsigned int fd, const char __user *buf, size_t count);1240ssize_t ksys_write(unsigned int fd, const char __user *buf, size_t count);
1242int ksys_chdir(const char __user *filename);1241int ksys_chdir(const char __user *filename);