switch file_open_root() to struct path
[linux-block.git] / fs / kernel_read_file.c
index 90d255fbdd9b34d366bd6b6fe64f6c760595ea8f..87aac4c72c37da2f82cad443279d66f0b5a2cf8c 100644 (file)
@@ -160,7 +160,7 @@ int kernel_read_file_from_path_initns(const char *path, loff_t offset,
        get_fs_root(init_task.fs, &root);
        task_unlock(&init_task);
 
-       file = file_open_root(root.dentry, root.mnt, path, O_RDONLY, 0);
+       file = file_open_root(&root, path, O_RDONLY, 0);
        path_put(&root);
        if (IS_ERR(file))
                return PTR_ERR(file);