]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - init/do_mounts.c
init: add an init_mount helper
[thirdparty/linux.git] / init / do_mounts.c
index a7f22cf58c7efd32f19d685875b9b0e420b0af99..83db87b6e5d1e0a056f7bf5f470768e8b542a942 100644 (file)
@@ -395,16 +395,16 @@ static int __init do_mount_root(const char *name, const char *fs,
        int ret;
 
        if (data) {
-               /* do_mount() requires a full page as fifth argument */
+               /* init_mount() requires a full page as fifth argument */
                p = alloc_page(GFP_KERNEL);
                if (!p)
                        return -ENOMEM;
                data_page = page_address(p);
-               /* zero-pad. do_mount() will make sure it's terminated */
+               /* zero-pad. init_mount() will make sure it's terminated */
                strncpy(data_page, data, PAGE_SIZE);
        }
 
-       ret = do_mount(name, "/root", fs, flags, data_page);
+       ret = init_mount(name, "/root", fs, flags, data_page);
        if (ret)
                goto out;
 
@@ -628,7 +628,7 @@ void __init prepare_namespace(void)
        mount_root();
 out:
        devtmpfs_mount();
-       do_mount(".", "/", NULL, MS_MOVE, NULL);
+       init_mount(".", "/", NULL, MS_MOVE, NULL);
        ksys_chroot(".");
 }