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. Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
c60166f042
commit
09267defa3
6 changed files with 19 additions and 4 deletions
|
|
@ -1236,7 +1236,6 @@ asmlinkage long sys_ni_syscall(void);
|
|||
* the ksys_xyzyyz() functions prototyped below.
|
||||
*/
|
||||
|
||||
int ksys_umount(char __user *name, int flags);
|
||||
int ksys_chroot(const char __user *filename);
|
||||
ssize_t ksys_write(unsigned int fd, const char __user *buf, size_t count);
|
||||
int ksys_chdir(const char __user *filename);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue