diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2021-04-02 02:00:57 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2021-04-07 20:56:43 +0300 |
commit | ffb37ca3bd16ce6ea2df2f87fde9a31e94ebb54b (patch) | |
tree | 3181f65f00970c041c87262309e5737b8139b080 /fs/kernel_read_file.c | |
parent | 4f0ed93fb92d3528c73c80317509df3f800a222b (diff) | |
download | linux-ffb37ca3bd16ce6ea2df2f87fde9a31e94ebb54b.tar.xz |
switch file_open_root() to struct path
... and provide file_open_root_mnt(), using the root of given mount.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/kernel_read_file.c')
-rw-r--r-- | fs/kernel_read_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/kernel_read_file.c b/fs/kernel_read_file.c index 90d255fbdd9b..87aac4c72c37 100644 --- 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.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); |