summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-07-23 09:23:08 +0300
committerChristoph Hellwig <hch@lst.de>2020-07-31 09:17:51 +0300
commit09267defa36aaff6ff829bd2fc8b043ec151cc3e (patch)
tree112707b95369bc1db23f2b60c2f286135d7b69fe /init
parentc60166f04283ffba7b88b45d824bbfb2bfccee24 (diff)
downloadlinux-09267defa36aaff6ff829bd2fc8b043ec151cc3e.tar.xz
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>
Diffstat (limited to 'init')
-rw-r--r--init/do_mounts_initrd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/do_mounts_initrd.c b/init/do_mounts_initrd.c
index 1f9336209ad9..6b020a069902 100644
--- a/init/do_mounts_initrd.c
+++ b/init/do_mounts_initrd.c
@@ -122,7 +122,7 @@ static void __init handle_initrd(void)
else
printk("failed\n");
printk(KERN_NOTICE "Unmounting old root\n");
- ksys_umount("/old", MNT_DETACH);
+ init_umount("/old", MNT_DETACH);
}
}