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:
@@ -1706,7 +1706,7 @@ static inline bool may_mandlock(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
static int path_umount(struct path *path, int flags)
|
||||
int path_umount(struct path *path, int flags)
|
||||
{
|
||||
struct mount *mnt;
|
||||
int retval;
|
||||
@@ -1736,7 +1736,7 @@ dput_and_out:
|
||||
return retval;
|
||||
}
|
||||
|
||||
int ksys_umount(char __user *name, int flags)
|
||||
static int ksys_umount(char __user *name, int flags)
|
||||
{
|
||||
int lookup_flags = LOOKUP_MOUNTPOINT;
|
||||
struct path path;
|
||||
|
Reference in New Issue
Block a user