projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
switch file_open_root() to struct path
[linux-block.git]
/
fs
/
kernel_read_file.c
diff --git
a/fs/kernel_read_file.c
b/fs/kernel_read_file.c
index 90d255fbdd9b34d366bd6b6fe64f6c760595ea8f..87aac4c72c37da2f82cad443279d66f0b5a2cf8c 100644
(file)
--- a/
fs/kernel_read_file.c
+++ b/
fs/kernel_read_file.c
@@
-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.mn
t, path, O_RDONLY, 0);
+ file = file_open_root(
&roo
t, path, O_RDONLY, 0);
path_put(&root);
if (IS_ERR(file))
return PTR_ERR(file);